Article ID: 104672
Article Last Modified on 4/24/2006
APPLIES TO
- Microsoft Visual C++ 1.0 Professional Edition
- Microsoft Visual C++ 1.5 Professional Edition
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52 Professional Edition
- Microsoft Visual C++ 1.0 Professional Edition
- Microsoft Visual C++ 2.0 Professional Edition
- Microsoft Visual C++ 2.1
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 6.0 Service Pack 5
- Microsoft Visual C++ 5.0 Standard Edition
This article was previously published under Q104672
SUMMARY
The 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:
ios.h(33) : error C2282: 'class' is followed by 'streambuf'.
(missing ','?)
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.
Additional query words: 8.00 8.00c 9.00 9.10
Keywords: kbhowto kbinfo kbprogramming kbcpponly kbcompiler KB104672