Hello everyone.
I’m sorry for a slightly out of topic question, but I’m asking anyway
I’m building a COM dll using ATL. With debug build everything is fine,
but Release build gives me a link error:
“error LNK2001: unresolved external symbol _main”.
Since I’m not the only victim of this in my company (but nobody care
before), I assume that this is something common. Can someone give
me a solution to this? I’m using VC++ 6.0
TIA,
Vladimir
OOT: Release build of ATL COM dllRemove “ATL_MIN_CRT” from the project
settings preprocessor definitions.
Rick Howard
Ontrack Data International
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Chtchetkine, Vladimir
Sent: Monday, February 28, 2000 10:04 AM
To: NT Developers Interest List
Subject: [ntdev] OOT: Release build of ATL COM dll
Hello everyone.
I’m sorry for a slightly out of topic question, but I’m asking anyway
I’m building a COM dll using ATL. With debug build everything is fine,
but Release build gives me a link error:
“error LNK2001: unresolved external symbol _main”.
Since I’m not the only victim of this in my company (but nobody care
before), I assume that this is something common. Can someone give
me a solution to this? I’m using VC++ 6.0
TIA,
Vladimir
Yep! Did the trick. Thank you very much,
Vladimir
-----Original Message-----
From: Rick Howard [mailto:xxxxx@ontrack.com]
Sent: Monday, February 28, 2000 11:35 AM
To: NT Developers Interest List
Subject: [ntdev] RE: OOT: Release build of ATL COM dll
Remove “ATL_MIN_CRT” from the project settings preprocessor definitions.
Rick Howard
Ontrack Data International
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Chtchetkine, Vladimir
Sent: Monday, February 28, 2000 10:04 AM
To: NT Developers Interest List
Subject: [ntdev] OOT: Release build of ATL COM dll
Hello everyone.
I’m sorry for a slightly out of topic question, but I’m asking anyway
I’m building a COM dll using ATL. With debug build everything is fine,
but Release build gives me a link error:
“error LNK2001: unresolved external symbol _main”.
Since I’m not the only victim of this in my company (but nobody care
before), I assume that this is something common. Can someone give
me a solution to this? I’m using VC++ 6.0
TIA,
Vladimir
FYI - Release MinSize creates a dependency on ATL runtime - the
ATL_STATIC_REGISTRY preprocessor flag is omitted by VC. If your binary is
run on a system without the ATL runtime DLL, a call to register an activeX
ctrl will fail - ie regsrv32 .
This “oversight” on my part, nailed me on my last project. Took me 1 hour of
debuggin sucken to find it.
-----Original Message-----
From: Rick Howard [mailto:xxxxx@ontrack.com]
Sent: Monday, February 28, 2000 9:35 AM
To: NT Developers Interest List
Subject: [ntdev] RE: OOT: Release build of ATL COM dll
Remove “ATL_MIN_CRT” from the project settings preprocessor definitions.
Rick Howard
Ontrack Data International
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Chtchetkine, Vladimir
Sent: Monday, February 28, 2000 10:04 AM
To: NT Developers Interest List
Subject: [ntdev] OOT: Release build of ATL COM dll
Hello everyone.
I’m sorry for a slightly out of topic question, but I’m asking anyway
I’m building a COM dll using ATL. With debug build everything is fine,
but Release build gives me a link error:
“error LNK2001: unresolved external symbol _main”.
Since I’m not the only victim of this in my company (but nobody care
before), I assume that this is something common. Can someone give
me a solution to this? I’m using VC++ 6.0
TIA,
Vladimir