[omniORB] IDL modules

Peter Ledbrook p.ledbrook@psenterprise.com
Tue, 24 Aug 1999 16:40:38 +0100


Hi,

 A simple question on the use of modules. Is this OK:


A.idl:

  module my_mod
  {
    interface A
    {
      ...
    };
  };

B.idl:

  #include "A.idl"

  module my_mod
  {
    interface B
    {
      ...
    };
  };

I ask because omniidl2 on NT4 (omniORB 2.7.1) thinks this is OK, but the
same compiler on IRIX 6.5 says that it is a redefinition of 'my_mod' and
is thus an error. Surely not everything in a module needs to be declared
within the same set of braces? All I want is for A and B to be in the
same module but not the same file.

Cheers,

Peter