--------------------Configuration: vscap - Win32 Debug--------------------
Linking...
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in Libcmtd.lib(sprintf.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _free already defined in Libcmtd.lib(dbgheap.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _time already defined in Libcmtd.lib(time.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _exit already defined in Libcmtd.lib(crt0dat.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _calloc already defined in Libcmtd.lib(dbgheap.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: _strstr already defined in Libcmtd.lib(strstr.obj)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in Libcmtd.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "mfc42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfco42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/vscap.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.vscap.exe - 8 error(s), 4 warning(s)

解决方案 »

  1.   

    在编译选项中加/NODEAULTLIB:libcmtd.lib
      

  2.   

    to: 
     DentistryDoctor(牙科医生) 
    成功了,马上结贴,能先解释一下这样做的原因吗?
      

  3.   

    One of the following may be a cause: The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.The given symbol was a packaged function (created by compiling with /Gy) and was included in more than one file but was changed between compilations. Recompile all files that include the symbol.The given symbol was defined differently in two member objects in different libraries, and both member objects were used.An absolute was defined twice, with a different value in each definition. 
    This error is followed by fatal error LNK1169.
      

  4.   

    你的第三方的.lib文件的编译方式要和你的编译方式相同,比如对MFC库的连接方式,如果第三方采用静态连接,你的工程也需要静态连接。