[omniORB] VC++ 6.0 & OmniORB_280 - Link problems
Sergiu Gavrila
sergiu@deuroconsult.ro
Tue, 22 Feb 2000 14:32:26 +0200
I'm having a problem linking a project, which is basically the echo example, but from inside VC 6.0. I
did everything README.win32 sad + adding omniDynamic280_rt.lib to my lib list, but it doesn't link. I
even check the dir.mak file for the echo sample (using nmake /f dir.mak is working just fine!) but I
could not found something wrong.
This is what I did:
from README.win32:
1. Under Build->Settings, select the "C/C++" tab.
2. In the "Category" box, select "C++ Language". Tick the "Enable exception handling" box.
3. In the "Category" box, select "Code Generation". In the "Use run-time library" box, select
"Multithreaded DLL".
4. **This is an import step.**
In the "Category" box, select "Preprocessor". In the "Preprocessor" box, add the macros
__WIN32__,__x86__.
If this is NT 4.0, add the macros __NT__ and __OSVERSION__=4 as well.
5. Select the "Link" tab.
6. In the "Category" box, select "Input". In the "Object/library modules" box, add the following
libraries: wsock32.lib, advapi32.lib, omniORB280_rt.lib, omnithread2_rt.lib
I have also added omniDynamic280_rt.lib, which eliminated some errors (there were 10 initially).
I probably forgot to put some settings, if somebody can help me ....
Here is what I get:
--------------------Configuration: echo_server - Win32 Release--------------------
Compiling...
StdAfx.cpp
Compiling...
echo_server.cpp
Linking...
echo_server.obj : error LNK2001: unresolved external symbol "protected: virtual __thiscall
Echo::~Echo(void)" (??1Echo@@MAE@XZ)
echo_server.obj : error LNK2001: unresolved external symbol "public: static void __cdecl
Echo_Helper::release(class Echo *)" (?release@Echo_Helper@@SAXPAVEcho@@@Z)
echo_server.obj : error LNK2001: unresolved external symbol "public: static class Echo * __cdecl
Echo::_duplicate(class Echo *)" (?_duplicate@Echo@@SAPAV1@PAV1@@Z)
echo_server.obj : error LNK2001: unresolved external symbol "protected: virtual void * __thiscall
Echo::_widenFromTheMostDerivedIntf(char const *,bool)"
(?_widenFromTheMostDerivedIntf@Echo@@MAEPAXPBD_N@Z)
echo_server.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall
_sk_Echo::~_sk_Echo(void)" (??1_sk_Echo@@UAE@XZ)
echo_server.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall
_sk_Echo::dispatch(class GIOP_S &,char const *,bool)" (?dispatch@_sk_Echo@@UAE_NAAVGIOP_S@@PBD_N@Z)
Release/echo_server.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
echo_server.exe - 7 error(s), 0 warning(s)
Sergiu