본문 바로가기

4.개발 및 운영 환경

ATL/WTL 에러 : error LNK2005: xxxx already defined in atlmincrt.lib (atlinit.obj)

ATL/WTL 에러 : error LNK2005: xxxx already defined in atlmincrt.lib (

작성자: Ospace (ospace114 at naver.com)
http://discount77.com/blog/ospace


에러 발생

Linking...
LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __get_osplatform already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __osplatform already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(calloc.obj) : error LNK2005: _calloc already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(dosmap.obj) : error LNK2005: __set_errno already defined in atlmincrt.lib(atlinit.obj)
LIBCMT.lib(dosmap.obj) : error LNK2005: __get_errno already defined in atlmincrt.lib(atlinit.obj)
  Creating library .\ReleaseMinDependency/Scheduler.lib and object .\ReleaseMinDependency/Scheduler.exp
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
.\ReleaseMinDependency/Scheduler.dll : fatal error LNK1120: 1 unresolved externals

해결

Project 설정(Property)에서 Configuration Properties>General에서 Minimize CRT Use in ATL를 "No"로 설정
반응형

'4.개발 및 운영 환경' 카테고리의 다른 글

함수 호출 시각화 하기  (0) 2007.10.31
SourceSafe에서 Solution 삭제  (0) 2007.06.08
An outline HTA for a MS word processing system  (0) 2007.05.10
Singleton  (0) 2006.11.28
원격 데스크탑  (0) 2006.11.17