VS2010 C and C++ - enforce ANSI compliance for Linux/gcc compatibility?

别说谁变了你拦得住时间么 提交于 2019-11-29 10:48:12

You can disable Microsoft extensions to the ANSI C and ANSI C++ standards by specifying the /Za flag, which will make the compiler emit errors if you use non-standard C and C++ features.

http://msdn.microsoft.com/en-us/library/0k0w269d(v=VS.100).aspx

However, this doesn't preclude you from using platform specific headers.

cofiem

This blog post seems to discuss something similar to what you're after.

I can't seem to find better info than this MSDN document regarding VS2010 ANSI compatibility.

Some alternatives to VS2010 include MonoDevelop - which supports C#, VB.Net, C/C++.

There's also Eclipse IDE for C/C++ Dev.

This stackoverflow question may also be of use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!