[omniORB] FW: Linking errors while using omniORB with
VC++5.0 .
Guy Trudel
gtrudel@mediatrix.com
Wed, 14 Jun 2000 11:08:05 -0400
>From an old email
> -----Original Message-----
> From: David Riddoch [mailto:djr@uk.research.att.com]
> Sent: Tuesday, December 07, 1999 9:53 AM
> To: omniorb-list@uk.research.att.com
> Subject: Re: [omniORB] solution for problems compiling projects using
> msdevstudio 6
> Until then...if you really need to avoid linking with
> omniDynamic (say if
> you are using static libraries) then you could hack the
> headers to remove
> all the dynamic types. More hassle than its worth if you ask me.
There is another way (taken from msvcdllstub.cc used for building omniorb),
you have to implement 3 methods in your msvc project so you don't have to
link
with omniDynamic.
CORBA::TypeCode_member::~TypeCode_member() {}
CORBA::Any::~Any() {}
void CORBA::IDLType_Helper::release(IDLType_ptr p) {}
>From msvcdllstub.cc
// They are required because MSVC++ generates references to these
// functions when it generates the destructors for the template
// sequence classes that are defined in the headers *even though*
// the destructors are defined as inline.
I tried to figure out from which template, but I didn't find.
Guy Trudel
> -----Original Message-----
> From: Ravindra [mailto:Ravindra.Chinchore@datamatics.co.in]
> Sent: Wednesday, June 14, 2000 9:08 AM
> To: Omniorb Mailing Service (E-mail)
> Subject: [omniORB] FW: Linking errors while using omniORB
> with VC++5.0.
>
>
> We are getting following linker errors occurring while
> building project
> using OmniORB 2.8.0 generated stubs.
> with VC++ 5.0:
> 1.>unresolved external symbol "public: __thiscall
> CORBA::TypeCode_member::TypeCode_member(void)"
> (??1TypeCode_member@CORBA@@QAE@XZ)
>
> 2.>unresolved external symbol "public: static void __cdecl
> CORBA::IDLType_Helper::release(class CORBA::IDLType *)"
> (?release@IDLType_Helper@CORBA@@SAXPAVIDLType@2@@Z)
>
> 3.>unresolved external symbol "public: __thiscall
> CORBA::Any::~Any(void)"
> (??1Any@CORBA@@QAE@XZ
>
> Pl. suggest the way out.
>
> With Best Regards,
> Ravindra
> (Ravindra.Chinchore@datamatics.co.in)