Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linker errors in ATL 7 release build

0 views
Skip to first unread message

Harald Dietewich

unread,
Jul 16, 2003, 12:11:28 PM7/16/03
to
Hi,
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

Alexander Nickolov

unread,
Jul 16, 2003, 2:31:57 PM7/16/03
to
I suppose as in all ATL versions you simply need to remove
_ATL_MIN_CRT from your project settings (or stop using most
CRT functions in your code). It's in the MVP FAQ:

http://www.mvps.org/vcfaq/com/2.htm

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Harald Dietewich" <dx...@freenet.de> wrote in message news:O3uWrT7S...@TK2MSFTNGP10.phx.gbl...

0 new messages