[omniORB] MS VC++ 6.0 // unresolved links

James E Taylor james.e.taylor at db.com
Wed Jun 16 09:11:11 BST 2004


List,

I am trying to compile a basic test application in MS VC++ 6.0.  The code simply initialises the orb, gets the root POA and the root naming context and then exits.

Each translation unit compiles OK, but upon linking, I get the following errors:

--------------------Configuration: omniOrbTest - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
main.cpp
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall omni_thread::init_t::init_t(void)" (__imp_??0init_t at omni_thread@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall omni_thread::init_t::~init_t(void)" (__imp_??1init_t at omni_thread@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall _omniFinalCleanup::_omniFinalCleanup(void)" (??0_omniFinalCleanup@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall _omniFinalCleanup::~_omniFinalCleanup(void)" (??1_omniFinalCleanup@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "public: static class CosNaming::_objref_NamingContextExt * __cdecl CosNaming::NamingContextExt::_narrow(class CORBA::Object *)" (?_narrow at NamingContextExt@CosNaming@@SAPAV_objref_NamingContextExt
@2 at PAVObject@CORBA@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: static class PortableServer::POA * __cdecl PortableServer::POA::_narrow(class CORBA::Object *)" (?_narrow at POA@PortableServer@@SAPAV12 at PAVObject@CORBA@@@Z)
main.obj : error LNK2001: unresolved external symbol "class CORBA::ORB * __cdecl CORBA::ORB_init(int &,char * *,char const *,char const * (* const)[2])" (?ORB_init at CORBA@@YAPAVORB at 1@AAHPAPADPBDQAY01PBD at Z)
main.obj : error LNK2001: unresolved external symbol "public: static class CORBA::Object * __cdecl CORBA::Object::_nil(void)" (?_nil at Object@CORBA@@SAPAV12 at XZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl omni::releaseObjRef(class omniObjRef *)" (?releaseObjRef at omni@@YAXPAVomniObjRef@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: static void __cdecl CosNaming::NamingContextExt_Helper::release(class CosNaming::_objref_NamingContextExt *)" (?release at NamingContextExt_Helper@CosNaming@@SAXPAV_objref_NamingContextExt at 2
@@Z)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall CORBA::Any::~Any(void)" (??1Any at CORBA@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall CORBA::TypeCode_member::~TypeCode_member(void)" (??1TypeCode_member at CORBA@@QAE at XZ)
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * const  _CORBA_String_helper::empty_string" (__imp_?empty_string at _CORBA_String_helper@@2QBDB)
main.obj : error LNK2001: unresolved external symbol "public: static void __cdecl CORBA::IDLType_Helper::release(class CORBA::_objref_IDLType *)" (?release at IDLType_Helper@CORBA@@SAXPAV_objref_IDLType at 2@@Z)
main.exe : fatal error LNK1120: 14 unresolved externals
Error executing cl.exe.

main.obj - 15 error(s), 0 warning(s)


I used the nm command under cygwin to see what symbols were in what .lib files and tried changing the lib list around but to no avail.  Currently the Project->Settings->Link->Project Options are showing:

omniORB403_rtd.lib omnithread30_rtd.lib msvcstub.lib ws2_32.lib mswsock.lib advapi32.lib omniDynamic403_rtd.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /nodefaultlib:"libcmt.lib" /nodefaultlib:"libcmtd.lib" /out:"Debug/omniOrbTest.exe" /libpath:"d:\omniORB-4.0.3\lib\x86_win32" /MTd

Any help would be greatly appreciated!  I am new to Windows programming, having only programmed on UN*X platforms before.

Thanks,
James


--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.





More information about the omniORB-list mailing list