开发者

Which are the ANSI C language extensions disabled by the /Za option in Visual Studio?

I work in a cross-platform environment where many tools (written in C) are compiled by both Visual Studio on Windows and GCC on Linux, as some co-workers prefer to debug with Visual Studio and some with Eclipse/GDB, etc. on Linux.

When we recently relaxed开发者_JS百科 the warning levels for these internal tools for GCC, reverting basically to the "default" warnings + -O3 we got a mismatch in error-level compared to Visual Studio.

Is there a way to get the specific language extensions disabled by the /Za switch in Visual Studio, so that we can align the compilation errors? It would be nice to be able to check-in after testing compilation with GCC without compile-break in Visual Studio.

So far I know that Visual Studio by default allows C++ style comments. What else?


You can find the Microsoft Extensions to C and C++ page at MSDN.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜