[omniORB] Symbol duplication / what are all these libs

Laurent Pointal pointal@lure.u-psud.fr
Mon, 09 Aug 1999 12:08:50 +0200


This is a multipart message in MIME format

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Bonjour,

WinNT4 SP1, OmniORB 2.7.1, VC++5 SP3.

I get problems in one of my projects, where the linker says:
----------------------------------------------------------------
Linking...
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in
MSVCRTD.lib(dllmain.obj)
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in
MSVCRTD.lib(dllmain.obj); second definition ignored
   Creating library Debug/ServSimul2.lib and object Debug/ServSimul2.exp
ServSimul2.exp : warning LNK4070: /OUT:ServSimul.dll directive in .EXP
differs from output filename "Debug/ServSimul2.dll"; ignoring directive
Debug/ServSimul2.dll : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.
----------------------------------------------------------------

The project is a DLL, which use OmniORB and MFC, and which use another DLL
(based on OmniORB2 and MFC too, and which compiles+link and run well, and
make Python/Fnorb talking to C++/omniORB).
As said in the documentation, I use the libs:  wsock32.lib
omniORB271_rt.lib omnithread2_rt.lib (+my other DLL's lib).
It seems the symbol _DllMain@12 is defined twice when linking with
omniORB271_rt.lib.

So, what are all these others libs... and is there one I could use in
replacement to avoid symbol duplication?

R=E9pertoire de Q:\omniORB_2.7.1\lib\x86_win32

06/04/99  15:28         <DIR>          .
06/04/99  15:28         <DIR>          ..
12/03/99  11:34              1=A0396=A0026 omniDynamic2.lib
12/03/99  11:34              1=A0291=A0574 omniDynamic271_rt.lib
12/03/99  11:35              1=A0616=A0826 omniDynamic271_rtd.lib
12/03/99  11:36              6=A0810=A0136 omniDynamic2d.lib
12/03/99  11:36                 97=A0518 omniLC.lib
12/03/99  11:36                 73=A0712 omniLC22_rt.lib
12/03/99  11:36                113=A0700 omniLC22_rtd.lib
12/03/99  11:36                971=A0154 omniLCd.lib
12/03/99  11:37              1=A0403=A0720 omniORB2.lib
12/03/99  11:37                959=A0882 omniORB271_rt.lib
12/03/99  11:37              1=A0268=A0930 omniORB271_rtd.lib
12/03/99  11:39              8=A0032=A0088 omniORB2d.lib
12/03/99  11:39                 31=A0442 omnithread.lib
12/03/99  11:39                 42=A0766 omnithread2_rt.lib
12/03/99  11:39                 42=A0822 omnithread2_rtd.lib
12/03/99  11:39                 78=A0706 omnithreadd.lib


Thanks.

Laurent.

Laurent POINTAL - CNRS/LURE - Service Informatique Experiences
Tel/fax: 01 64 46 82 80 / 01 64 46 41 48
email  : pointal@lure.u-psud.fr  ou  lpointal@planete.net=20
ouebe  : http://www.planete.net/~lpointal

--------------InterScan_NT_MIME_Boundary--