[omniORB] (omniORB4.0.0) Link problems.... missing functions on WindowsXP with VC++

Ulf Stoermer ulf@emi.yamaha.co.jp
Thu Mar 20 04:56:02 2003


Hi,

because you're using the Any type you also have to link against the
omniDynamic4 library.

Cheers

Ulf


> -----Original Message-----
> From: omniorb-list-admin@omniorb-support.com
> [mailto:omniorb-list-admin@omniorb-support.com]On Behalf Of
> dahaverk@rockwellcollins.com
> Sent: Thursday, 20 March 2003 1:12 AM
> To: omniORB-list@omniorb-support.com
> Subject: [omniORB] (omniORB4.0.0) Link problems.... missing functions on
> WindowsXP with VC++
>
>
>
> Hello,
>
> I've just started trying to use omniORB on windows XP with MS VC++6.0.
>
> I copyed the dir.mak file from the examples\echo as a template
> for my work.
> However,  I get lots of link errors.   Could someone please explain these
> so I can fix my link problems.   The program I am linking is a "client"
> application.
>
> Originally, I had a few errors that looked like it was unable to find some
> DynamicAny functions.... So, I added the
> Thanks,
>
> David Haverkamp
> dahaverk@rockwellcollins.com
>
> C:\Projects\MAPM>nmake /f dir.mak
>
> C:\Projects\MAPM>nmake /f dir.mak
>
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>         cl /nologo /c -O2 -MD -GX -D__WIN32__ -D_WIN32_WINNT=0x0400
> -D__x86__ -D__NT__  -D__OSVERSIO
> N__=4 -I. -IC:\Projects\omniORB-4.0.0\include /Tpmission_servicesSK.cxx
> mission_servicesSK.cxx
>         link -nologo  -out:scheduler_client.exe mission_servicesSK.obj
> scheduler_client.obj omniORB400_rt.lib omnithread30_rt.lib  msvcstub.lib
> -NODEFAULTLIB:libcmt.lib -NODEFAULTLIB:libcmtd.lib  ws2_32.lib mswsock.lib
> advapi32.lib  -libpath:C:\Projects\omniORB-4.0.0\lib\x86_win32
> mission_servicesSK.obj : error LNK2001: unresolved external
> symbol "public:
> void __thiscall CORBA::Any::operator>>=(class cdrStream &)const " (??
> _2Any@CORBA@@QBEXAAVcdrStream@@@Z)
> mission_servicesSK.obj : error LNK2001: unresolved external
> symbol "public:
> void __thiscall CORBA::Any::operator<<=(class cdrStream &)" (??
> _3Any@CORBA@@QAEXAAVcdrStream@@@Z)
> mission_servicesSK.obj : error LNK2001: unresolved external
> symbol "public:
> class CORBA::Any & __thiscall CORBA::Any::operator=(class CORBA::Any const
> &)" (??4Any@CORBA@@QAEAAV01@ABV01@@Z)
> mission_servicesSK.obj : error LNK2001: unresolved external
> symbol "public:
> __thiscall CORBA::Any::Any(void)" (??0Any@CORBA@@QAE@XZ)
> scheduler_client.obj : error LNK2001: unresolved external symbol "public:
> virtual __thiscall CORBA::Environment::~Environment(void)"
> (??1Environment@CORBA@@UAE@XZ)
> scheduler_client.obj : error LNK2001: unresolved external symbol "public:
> __thiscall CORBA::Environment::Environment(void)"
> (??0Environment@CORBA@@QAE@XZ)
> scheduler_client.exe : fatal error LNK1120: 6 unresolved externals
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.
>
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>