[omniORB] spawnvp of CL failed

Duncan Grisby dgrisby@uk.research.att.com
Mon, 10 Jan 2000 17:03:45 +0000


On Monday 10 January, "Allen, Keith" wrote:

> Newbie question here, and probably a strange one at that:  Does omniORB
> require that a C++ compiler be installed to run the idl compiler?  I know I
> won't be able to compile the generated code without a C++ compiler, but I
> really just need to check the syntax of some OMG IDL for now.

> omniidl2: spawnvp of CL failed
> Preprocessor returned non-zero status -1

omniidl2 does indeed need to run the C pre-processor on the IDL file.
You can use a different C pre-processor by using omniidl2's -Y flag.
I've made a Windows binary version of GNU's C pre-processor available
at

  ftp://ftp.uk.research.att.com/pub/omniORB/temp/omni-cpp.exe

The source for it is in the omniORBpy / omniidl distribution.

If you want to check the syntax of some IDL, I'd recommend that you
use the new omniidl front-end which comes with omniORBpy, since it is
much more strict about what it considers valid IDL. Unfortunately, you
can only get it in source form at the moment, so if you haven't got a
compiler that's not very helpful. If you ask nicely, I'll make a
binary distribution for Windows :-).

When omniORB 3 is released, it will use the new omniidl and the GNU C
pre-processor.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --