Bertrand MAISONNEUVE
2009-08-13 09:20:58 UTC
Hi all,
I'm trying to use forward declaration in idl files and I'm experiencing
some difficulties.
My code is composed of two interfaces declared in separate idl files:
//A.idl
#include "B.idl"
Interface A : B
{
....
}
//B.idl
Interface A;
Interface B
{
Toto(A);
}
The .h and .cpp generation goes well but when I try to compile, I have
the following errors:
src/B.cpp: In member function `virtual void
B_stub::RegisterA(ERSA::Identifier, A*)':
src/B.cpp:172: error: `_marshaller_A' was not declared in this scope
src/B.cpp: In member function `bool
POA_B::dispatch(CORBA::StaticServerRequest*)':
Is it possible to use forward declaration on an interface defined in
another idl file ?
I'm using mico 2.3.12 on Red Hat 4.
Thanks,
Bertrand MAISONNEUVE
---------------------------------------------------
European Rail Software Applications
5, Rue Maurice Blin
67500 HAGUENAU
France
Tel : (0033) 3 88 07 15 50
Fax : (0033) 3 88 07 15 51
E-mail : mailto:***@ersa-france.com
<mailto:***@ersa-france.com>
Internet : http://www.ersa-france.com <http://www.ersa-france.com>
---------------------------------------------------
I'm trying to use forward declaration in idl files and I'm experiencing
some difficulties.
My code is composed of two interfaces declared in separate idl files:
//A.idl
#include "B.idl"
Interface A : B
{
....
}
//B.idl
Interface A;
Interface B
{
Toto(A);
}
The .h and .cpp generation goes well but when I try to compile, I have
the following errors:
src/B.cpp: In member function `virtual void
B_stub::RegisterA(ERSA::Identifier, A*)':
src/B.cpp:172: error: `_marshaller_A' was not declared in this scope
src/B.cpp: In member function `bool
POA_B::dispatch(CORBA::StaticServerRequest*)':
Is it possible to use forward declaration on an interface defined in
another idl file ?
I'm using mico 2.3.12 on Red Hat 4.
Thanks,
Bertrand MAISONNEUVE
---------------------------------------------------
European Rail Software Applications
5, Rue Maurice Blin
67500 HAGUENAU
France
Tel : (0033) 3 88 07 15 50
Fax : (0033) 3 88 07 15 51
E-mail : mailto:***@ersa-france.com
<mailto:***@ersa-france.com>
Internet : http://www.ersa-france.com <http://www.ersa-france.com>
---------------------------------------------------