--------------------Configuration: hxr_demo_001 - Win32 Debug--------------------
Compiling...
main.cpp
Linking...
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCMTD.lib(crt0dat.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCMTD.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
MSVCRT.lib(MSVCRT.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
hxr_demo_001.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
hxr_demo_001.exe - 6 error(s), 1 warning(s)
This is driving me nuts. anybody else have this problem when building their own static libs?
Doh! Linking errors... from my library
/NODEFAULTLIB:MSVCRT.lib
add this to your compiler settings. Project/Options or Tools/Settings or something like that. I've had the same problem before and this option should fix it. If it blows up, try the other lib mentioned in the errors.
add this to your compiler settings. Project/Options or Tools/Settings or something like that. I've had the same problem before and this option should fix it. If it blows up, try the other lib mentioned in the errors.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement