BUG: ATL Service EXE Doesn't Build in Release BuildLast reviewed: June 16, 1997Article ID: Q167946 |
The information in this article applies to:
SYMPTOMSIf you try to build a release mode of an ATL service EXE created with ATL COM AppWizard, you get the following the error message:
"error LNK2001: unresolved external symbol _main" CAUSEBuilds in release mode automatically include the preprocessor directive _ATL_MIN_CRT, while the default ATL service code generated by the wizard requires the CRT library.
RESOLUTIONRemove _ATL_MIN_CRT from the list of preprocessor defines to allow CRT startup code to be included.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor additional information about using CRT in ATL projects, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q165076 TITLE : INFO: LNK2001 Error ATL Release Build |
Additional query words: Server
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |