[omniORB] Nesting IDL files
Matt Hortman
mbhortman@ieee.org
Mon, 23 Apr 2001 12:04:01 -0400
On Fri, Apr 20, 2001 at 06:00:36PM -0500, Olaf Meding wrote:
>
> omniORB does not seem to deal with nested IDL files correctly or maybe I am
> doing something wrong? The IDL compiler has no problem compiling the main
> and nested idl files. However, when I compile the files produced by the IDL
> compiler with VC6 I get an error saying that a header file is missing. The
> name of the header file is the name of the nested IDL file.
>
> Here is my (abreviated) IDL file:
> module tcorba {
> // losts of code shared by all of our IDL files
>
> #include "name.idl"
>
> }
>
> Here is the IDL compiler command line:
> omniidl.exe -bcxx -Wbsplice-modules
> -I..\..\..\code\common
> -DREAL_TIME_DATA_IDL
> -Wbh=.h -Wbs=.cpp
> -Cidl ..\..\..\code\common\tomotherapy.idl
It's been my experience that omniidl does not actually compile the
included IDL files. It just #includes the associated header (in this
case name.h). Therefore, in your example, you will have to compile
name.idl also.
HTH,
-Matt