[ENet-discuss] Visual Studio .NET linker errors

stu at evilx.com stu at evilx.com
Tue Aug 31 01:34:51 PDT 2004


Hi-

I'm trying to get the Enet library to work with a SDL based game I'm
working on.  I can compile the library as a static library or DLL just
fine but when I link to the library from my game I get the following
linker errors.  This looks like something stupid that I'm over looking..


Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF'
specification
libcmtd.lib(dbgheap.obj) : error LNK2005: _malloc already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(dbgheap.obj) : error LNK2005: _free already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(crt0dat.obj) : error LNK2005: _exit already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(crt0dat.obj) : error LNK2005: __exit already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(crt0dat.obj) : error LNK2005: __cexit already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in
MSVCRT.lib(MSVCR71.dll)
libcmtd.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
libcmtd.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj)
libcmtd.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj)
libcmtd.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj)
libcmtd.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in
MSVCRT.lib(crtexe.obj)
libcmtd.lib(crt0.obj) : error LNK2005: __amsg_exit already defined in
MSVCRT.lib(MSVCR71.dll)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _strncpy already defined in
libcmtd.lib(strncpy.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: __isctype already defined in
libcmtd.lib(isctype.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmtd.lib'
conflicts with use of other libs; use /NODEFAULTLIB:library
Release/rastaisland.exe : fatal error LNK1169: one or more multiply
defined symbols found



-thanks
jason



More information about the ENet-discuss mailing list