如果是用到"Use MFC in a Shared Library"就不会出错
请问如何解决?
我是在网上下载的JpegLibLinking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fread already defined in libcmtd.lib(fread.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in libcmtd.lib(sprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fwrite already defined in libcmtd.lib(fwrite.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fflush already defined in libcmtd.lib(fflush.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _getenv already defined in libcmtd.lib(getenv.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libcmtd.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libcmtd.lib(dbgheap.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
JpegLib.lib(Jquant2.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jchuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jcmaster.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jerror.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jder.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jdcoefct.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jdhuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
JpegLib.lib(Jquant2.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jchuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jcmaster.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jder.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jdcoefct.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jdhuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
JpegLib.lib(Jcdctmgr.obj) : error LNK2001: unresolved external symbol __ftol2
JpegLib.lib(Jidctflt.obj) : error LNK2001: unresolved external symbol __ftol2
Debug/MfcApp.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.MfcApp.exe - 24 error(s), 1 warning(s)