[omniORB] omniidl2 problems under IRIX
James Riden
jamesr@harlequin.co.uk
17 Feb 2000 08:31:18 +0000
David Bryant <daveb@acres.com.au> writes:
> Hi,
>
> I have developed some stuff under Linux which I am now trying to port to
> IRIX. The problem is that the same IDL files will not compile under
> IRIX. There seems to be a problem with "re-opening modules". OmniORB
> 2.8.0 is installed on both systems.
>
> The following code compiles fine on Linux,
>
> module SomeName {
> };
>
> module SomeName {
> };
>
> But under IRIX it gives me:
>
> omniidl2 test.idl
> omniidl2: "/tmp/idli_a003YH.cc", line 4: redefinition after use,
> ::SomeName, , ::SomeName
> omniidl2: test.idl: found 1 error
>
> This is causing serious problems for me here at work.
> Any ideas ?
David,
I think you need : omniidl2 -m test.idl
This works on my setup ( MIPSpro 7.2.1, omniORB 2.8 )
If this doesn't work, have a look at include/omniORB2/CORBA_sysdep.h.
I could only verify that the 7.2.1 compiler supports namespaces, but
you might want to relax the condition to >= 720 for the 7.2 compiler.
..
#elif defined(__sgi)
#if _COMPILER_VERSION >= 721
#define HAS_Cplusplus_Namespace
#endif
cheers,
James