The information in this article applies to:
SYMPTOMSWhen you compile an Active Template Library (ATL) executable (.exe) project in Developer Studio, the _ATL_MIN_CRT preprocessor symbol allows you to use some standard C library functions without having to link in the C run-time library (CRT) startup code. If _ATL_MIN_CRT is defined when you build an ATL executable with Microsoft Foundation Classes (MFC) support, the linker returns the following linker errors:
CAUSESome C run-time library functions require that you provide the CRT startup code. Because both the C run-time and MFC libraries contain definitions for the new and delete operators, there is a conflict for the linker. RESOLUTIONRemove the _ATL_MIN_CRT preprocessor definition and rebuild the project. To do this, click Settings on the Project menu. On the C/C++ tab, select the Preprocessor category, and remove the _ATL_MIN_CRT definition. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor additional information, please see the following articles in the Microsoft Knowledge Base: Q173974 HOWTO: Add MFC Support to an ATL Project(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Mark Hagen, Microsoft Corporation. Additional query words: ActiveX Foundation Classes C++ CPP CXX
Keywords : kberrmsg kbActiveX kbLinker kbVC500 kbVC600 LinkIss |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |