Visual Studio (2015) fpermissive equivalent flag

风流意气都作罢 提交于 2019-12-02 14:41:04

问题


In VS2015 is there an equivalent flag of GCC -fpermissive? That's for a cpp application Thanks S.


回答1:


VC++ compiler permissive by default, but you can disable it using compiler flag /permissive- starting with VS2015 Update 3




回答2:


The theoretical equivalent is /Ze.

However, this allows Microsoft-specific extensions, whereas -fpermissive allows GCC-specific extensions. If you want your code to be portable, write portable code. It's that simple.



来源:https://stackoverflow.com/questions/36119137/visual-studio-2015-fpermissive-equivalent-flag

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