in an ATL7 (Visual Studio 2003) project everything builds fine for the DEBUG
build. But when I want to build the release version, I get the following
linker errors:
WisUtil warning LNK4006: '__osplatform' bereits in
'atlmincrt.lib(atlinit.obj)' definiert; zweite Definition wird ignoriert
WisUtil error LNK2005: __osplatform bereits in atlmincrt.lib(atlinit.obj)
definiert
WisUtil error LNK2019: Nicht aufgelöstes externes Symbol '_main', verwiesen
in Funktion '_mainCRTStartup'
(here the translation)
WisUtil warning LNK4006: '__osplatform' alreday defined in
'atlmincrt.lib(atlinit.obj)'; second definition will be ignored
WisUtil error LNK2005: __osplatform alreday defined in
atlmincrt.lib(atlinit.obj)
WisUtil error LNK2019: Unresolved external symbol '_main', referenced in
function '_mainCRTStartup'
When I replace the Library Multithreaded (/MT) by Multithreaded-Debug (/MTd)
in the release build, everything works fine. Is there a problem with the
retail Multithreaded library? Is it a bug? How can I work around?
Every help welcome!
Cheers, Harald
4 个解决方案
#1
try to remove _ATL_MIN_CRT preprocessor from your project settings.
#2
具体在vc7.1中如何 remove _ATL_MIN_CRT preprocessor ? 跟哪些设置有关呢?
#3
我已经 将 “在ATL中使用最小CRT设为否了啊”,可还是有上面的问题啊
#4
去掉atlmincrt.lib
#1
try to remove _ATL_MIN_CRT preprocessor from your project settings.
#2
具体在vc7.1中如何 remove _ATL_MIN_CRT preprocessor ? 跟哪些设置有关呢?
#3
我已经 将 “在ATL中使用最小CRT设为否了啊”,可还是有上面的问题啊
#4
去掉atlmincrt.lib