Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
4.1.2, 4.1.3, 4.2.0
-
None
-
None
-
All
-
Patch Available
-
Compiler Error
Description
The boost regression tests contains some .c files, which are failed to compile with stdcxx.
The example:
#include <assert.h> #include <ctype.h> #include <errno.h> #include <float.h> #include <limits.h> #include <locale.h> #include <math.h> #include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <wchar.h> #include <wctype.h> int main () { return 0; }
The build log on MSVC:
test.cpp D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2061: syntax error : identifier '__rw' D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2059: syntax error : ';' D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1142) : error C2449: found '{' at file scope (missing function header?) D:\stdcxx\stdcxx-4.2.x\include\rw\_defs.h(1163) : error C2059: syntax error : '}'