1. 程式人生 > >error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR90D.dll)

error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR90D.dll)

Orignal url: http://blog.csdn.net/gxj1680/article/details/7239810

工程是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)" (

[email protected]@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錯誤

解決辦法:

Project  ->  Properties  ->  C/C++ -> Code Generation  ->  Runtime library  ->  將Multi-threaded Debug DLL (/MDd)改為Multi-threaded Debug (/MTd)即可,

至於區別有待研究

相關推薦

error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR90D.dll)

Orignal url: http://blog.csdn.net/gxj1680/article/details/7239810 工程是vs2005編輯的ipmsg(從官網download的原始碼),但本地是vs2008的版本,編譯出現 1>LIBCMTD.lib(dbgheap.obj) : e

libcmtd.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll) 編譯錯誤解決方法

[問題描述] 今天在VC6下編譯G279軟體時,已編譯通過,連結時報一下錯誤: Linking...libcmtd.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.d

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

 Project -- Setting -- C/C++ -- C++ Language Enable Run-Time Type Information(RTTI) 此項必須打勾! 但現在Debug版編譯ok,Release版編譯報錯: Linking... Crea

error LNK2005:XXXX already defined in XXX.lib

設定工程時,出現類似如下錯誤: msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<ch

opencv配置問題:error LNK2005:XXXX already defined in XXX.lib

在配置opencv2410+VS2010時,debug可以成功生成解決方案,release不行,錯誤如下:錯誤 449 error LNK2005: "public: __int64 __thiscall std::basic_streambuf<char,struct

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

用靜態庫去編譯,若出現下面錯誤:LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)LIBC.lib(crt0dat.obj) : error LNK

Error LINK2005: already defined in libcmt.lib

這個錯誤是微軟設計錯誤,因此如果遇到這個錯誤,我們只能躲過這個連結錯誤。具體的辦法就是將那個提示出錯的庫放到另外一個庫的前面。另外選擇不同的C函 數庫,可能會引起這個錯誤。MS, C有兩種C函式庫,一種是普通的函式庫:LIBC.LIB,不支援多執行緒。另外一種是支援多執行緒

Already defined in LIBCMTD.lib

Additional Depencies:Nafxcwd.lib;Libcmtd.lib Ignore Specific Default Libraries:Nafxcwd.lib;Libcmtd.lib

2&gt;MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _calloc 已經在 LIBCMTD.lib(dbgcalloc.obj) 中定義

ont cal 鏈接器 使用 size lib rac amp svc 使用VS2010,在FireBreath裏面調用ortp庫和Speex庫。編譯的時候出現錯誤: 2>MSVCRTD.lib(MSVCR100D.dl

main already defined in *.obj 解決方法

VC6如果想在stdafx.h中定義全域性變數,由於該標頭檔案會被include多次,所以,經常會出現以下經典的錯誤:already defined in StdAfx.obj。 解決方法:把該變數的定義int g_flag放到stdafx.cpp中,然後在使用的地方ext

already defined in *.obj“符號已定義”問題原理及解決方案

VC6如果想在stdafx.h中定義全域性變數,由於該標頭檔案會被include多次,所以,經常會出現以下經典的錯誤:already defined in StdAfx.obj。 解決方法:把該變數的定義int g_flag放到stdafx.cpp中,然後在使用的地方e

VC6 出現“already defined in *.obj”錯誤的解決方法

通常在VC6 工程中某個標頭檔案中定義了全域性變數,而這個全域性變數要在很多個.cpp檔案中使用時,就會出現“……already defined in *.obj”的錯誤提示,解決方法是: 把錯誤提示中提到了全域性變數(或全域性函式)的定義放到一個.cpp檔案中。在其他.cpp檔案中使用時,宣告extern

CCritSec::CCritSec(void) already defined in 問題的解決

各位大蝦,本人在編譯DirectShow工程時,Release版是好的,但在編譯Debug版本時出問題,請教怎麼樣解決? strmbasd.lib(wxutil.obj) : error LNK2005: "public: __thiscall CCritSec::CCri

c++ 變數不要定義在.h 標頭檔案當中(main already defined in *.obj 解決方法)

原文地址:http://blog.csdn.NET/tianwailaibin/article/details/6239380 原部落格地址:http://blog.csdn.net/u010536615/article/details/50250747 標頭檔案中定義變數

LNK2005...already defined...ERROR

連結時出錯提示: LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib(crt0dat.obj) : err

vs工程連結出現error LNK2005...already defined

連結過程,出現很多這樣的錯誤: error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator&l

Spring Boot - Error creating bean with name 'dataSource' defined in class path resource

刪除 需要 reat text class with config autoconf ext 看起來像最初的問題是與自動配置。 如果你不需要數據源,只需從自動配置過程中刪除它: @EnableAutoConfiguration(exclude={DataSour

spring AOP使用中Error creating bean with name ‘…’defined in class path resource..問題及其解決方法

factory fail 正常 ins aspect 工作內容 thread def before spring AOP使用中Error creating bean with name ‘…’defined in class path resource..問題及其解決方法

Spring Boot 報錯:Error creating bean with name 'entityManagerFactory' defined in class path resource

fine 依賴 debug isp jpa java idt .com ima spring boot 寫一個web項目,在使用spring-data-jpa的時候,啟動報如下錯誤: Error starting ApplicationContext. To display

IDEA跑代碼出現Error(7,8) ***App is already defined as object App object App extends Application { 錯誤的解決辦法(圖文詳解)

機器 strong ima 分析 挖掘 extend AS 收獲 qq群   不多說,直接上幹貨! 問題現象 Error(7,8) App is already defined as object App