Error with modules?

Alexey Ryaboshapko alex@ipi.ac.ru
Tue, 22 Jul 1997 16:41:58 +0400


> >Hi.
> >I have following idl text:
> >//file a.idl
> >module A {
> >  interface B {
> >    void f();
> >    };
> >  };
> >
> >It's compiled by omniidl2.exe into two files a.cpp and a.h
> >after that I'm trying to compile it with MSVC5.0 to a.obj file,
> >the following error messages come:
> >CL /GR /nologo /MD /W3 /GX /O2 /D "WIN32" /D "_CONSOLE" /D "__NT__" /D "
> >_X86_" -I. -Id:\omniORB2\include -c a.CPP
> >a.CPP
> >a.h(153) : error C2027: use of undefined type 'A'
> >a.h(160) : error C2027: use of undefined type 'A'
> >NMAKE : fatal error U1077: 'CL' : return code '0x2'
> >Stop.
> >
> >What I have to do?
> >Am I wrong?
> >
> >
> 
> Hi ...
> 
> I also met the *use of undefined type 'A'* problem.
> It seems omniidl2.exe generates something wrong:
> in the lines the compiler tells you (l.153, l.160), you should have a
> *static A::B_ptr __nil_B;*
> or something like that.
> Just leave the *A::* part in that two lines (all this is within the
> *_CORBA_MODULE A * part, so it is not necessary to specify the module once
> more, I think).
> 
> Try it and tell me ...
> 
> Valérie
> 
> *++++++++++++++++++++++++++*
> * Valérie CASTELAIN                      *
> * SEMA GROUP sae                      *
> *  C/ Albarracín, 25                       *
> * 28037 MADRID                         *
> * 327.28.28                                   *
> * valerie.castelain@sema.es            *
> * +++++++++++++++++++++++++*

Hi.
I just leave the *A::* part in those lines and all work fine!
I also try this sample under Solaris but there was no problems. 
It look like only Windows problem.

The great thank, Alexey.