LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D

转载 2015年07月09日 17:32:24
转自VC错误:http://www.vcerror.com/?p=1613
问题描述:

工程是vs2005编辑的ipmsg(从官网download的源码),但本地是vs2008的版本,编译出现
1>LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBCMTD.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(dbgrptw.obj) : error LNK2005: __CrtDbgReportW already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(vswprint.obj) : error LNK2005: __vswprintf already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRTD.lib(MSVCR90D.dll)
1>LIBCMTD.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR90D.dll)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __strdup already defined in LIBCMTD.lib(strdup.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __stricmp already defined in LIBCMTD.lib(stricmp.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __wcsdup already defined in LIBCMTD.lib(wcsdup.obj)
1> Creating library Debug/IPMsg.lib and object Debug/IPMsg.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Debug/IPMsg.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://e:\My Projects\ipmsg332src\Obj\Debug\BuildLog.htm"
1>IPMsg - 29 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========
这样的link错误

解决方法:
具体的解决方法参考文章:http://www.vcerror.com/?p=1613

【error】LNK2005: already defined in LIBCMTD.lib(typinfo.obj)

转载请注明出处:http://blog.csdn.net/xiaowei_cqu/article/details/7568333 这个问题的来源是这样的,我想要静态编译发布我程序,就是Runtime ...

error LNK2005: _atoi already defined in libcmtd.lib(atox.obj)

error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj) 今天在编译vc工程时出现的错误,并在网上找到了解决方法,有类似...

libcd.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)

今天在VC6下编译OCX时,由于新增加了几个静态库,在编译时报如下错误: Linking... LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit a...
  • mail_cm
  • mail_cm
  • 2012年03月07日 16:07
  • 997

关于形如--error LNK2005: xxx 已经在 msvcrtd.lib ( MSVCR90D.dll ) 中定义--的问题分析解决

 关于形如--error LNK2005: xxx 已经在 msvcrtd.lib ( MSVCR90D.dll ) 中定义--的问题分析解决 转自:http://hi.baidu.com...
  • andyjim
  • andyjim
  • 2014年04月14日 13:00
  • 506

error LNK2005: __*** already defined in LIBCMTD.lib

error LNK2005: __*** already defined in LIBCMTD.lib Compiling...main.cppSLEEDispatcher.cppLinking......

Error hnk2005:exist already defined in msvcrt.lib(MSVCR100.dll)_LIBCMTD.lib 解决方案

今天在调试发布一个Windows 8游戏版本时发现这个异常: Error    1 : error LNK2005: _exit already defined in msvcrt.lib(MS...

error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)

用静态库去编译,若出现下面错误:LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat...
  • jixuju
  • jixuju
  • 2011年06月11日 15:27
  • 1195

LIBCMT.lib(vswprnc.obj) : error LNK2005: 已经在 msvcrtd.lib(MSVCR100D.dll) 中定义

vs2010编译工程错误: 1>  正在生成代码... 1>LIBCMT.lib(vswprnc.obj) : error LNK2005: _vswprintf_s 已经在 msvcrt...

error LNK2005: 已经在 libcmtd.lib(dbgheap.obj) 中定义

error LNK2005: 已经在 libcmtd.lib(dbgheap.obj) 中定义
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D
举报原因:
原因补充:

(最多只允许输入30个字)