描述:
我用ATL编写一个COM,需要连接一个X.LIB库,在调用了X库中的一个函数后,编译连接工程得以下的出错信息,
高手帮忙看看,如何解决。。。。。先谢了。。。。。
Generating Code...
Linking...
mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in FNC.obj
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgheap.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgheap.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in LIBCMTD.lib(atox.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __stricmp already defined in LIBCMTD.lib(stricmp.obj)
mfcs42.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in FNC.obj; second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: _strncmp already defined in LIBCMTD.lib(strncmp.obj); second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: _sprintf already defined in LIBCMTD.lib(sprintf.obj); second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: _free already defined in LIBCMTD.lib(dbgheap.obj); second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: _malloc already defined in LIBCMTD.lib(dbgheap.obj); second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: _atoi already defined in LIBCMTD.lib(atox.obj); second definition ignored
msvcrt.lib(MSVCRT.dll) : warning LNK4006: __stricmp already defined in LIBCMTD.lib(stricmp.obj); second definition ignored
Creating library Debug/FNC.lib and object Debug/FNC.exp
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/FNC.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.