The information in this article applies to:
SYMPTOMSWhen compiling a multiple source file project that creates a pre-compiled header file inside the Visual C++ Integrated Development Environment (IDE), the following error can occur: NOTE: The linker error is generated during the compiler phase of the build. CAUSEThe /c compiler option is missing from the build settings. RESOLUTION
Add /c to the compiler options. To do this, you must edit the compiler options in the Project Options box in the C/C++ tab under Project Settings. STATUSThis behavior is by design. MORE INFORMATION
By default, the Visual C/C++ compiler attempts to compile and link in a single step. The /c (Compile without Linking) option is used to tell the compiler to compile only. Since Visual C++ compiles and links in separate steps, then /c is required for all Visual C++ builds. REFERENCES© Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbCompiler kbLinker kbVC600 |
Last Reviewed: June 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |