[omniORB] IDL modules
David Riddoch
djr@uk.research.att.com
Tue, 24 Aug 1999 16:55:55 +0100 (GMT)
Peter,
The option -m allows modules to be re-opened.
This is enabled by default only for platforms on which modules name to c++
namespaces. On other platforms modules map to c++ classes -- and so you
will probably get errors when you compile the stubs.
Hope that helps,
David
On Tue, 24 Aug 1999, Peter Ledbrook wrote:
> 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
>
>
>