Posted on 2010-08-02 14:14
S.l.e!ep.¢% 閱讀(571)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
VC
WTL工程編譯 Debug 無(wú)問(wèn)題,編譯 Release時(shí)出現(xiàn) Link?錯(cuò)誤
1>正在鏈接...
1>LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __get_osplatform 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __osplatform 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(calloc.obj) : error LNK2005: _calloc 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(dosmap.obj) : error LNK2005: __errno 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(dosmap.obj) : error LNK2005: __set_errno 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(dosmap.obj) : error LNK2005: __get_errno 已經(jīng)在 atlmincrt.lib(atlinit.obj) 中定義
1>LIBCMT.lib(crt0.obj) : error LNK2019: 無(wú)法解析的外部符號(hào) _main,該符號(hào)在函數(shù) ___tmainCRTStartup 中被引用
1>Release\KugouUIDemo.exe : fatal error LNK1120: 1 個(gè)無(wú)法解析的外部命令
解決方法:
屬性頁(yè) -> 配置屬性 -> 常規(guī) -> 項(xiàng)目默認(rèn)值 -> 在ATL中最小使用CRT -> 否