The information in this article applies to:
SUMMARYThe following error is typically the first of many returned by the Microsoft C/C++ Compiler when attempting to compile a file that includes a C++ header file such as IOSTREAM.H in a C program: In more recent versions of the compiler, the system header files use #ifdef __cplusplus to prevent the contents from being parsed when compiled as "C" code. There may also be multiple C2065, C2297, C2054, C2085, C2143, and C2144 errors, and eventually a C1003 error indicating that the error count reached 100. MORE INFORMATION
The C/C++ compiler invokes either the C compiler or the C++ compiler
according to the file's extension. If it ends in .C, the C compiler is
invoked; if it ends in .CPP or .CXX, the C++ compiler is invoked.
if compiled with:
The code compiles fine if compiled with:
-or-
Sample Code
Additional query words: 8.00 8.00c 9.00 9.10
Keywords : kbCompiler kbCPPonly kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |