Visual Studio(2015)fpermissive等效标志 [英] Visual Studio (2015) fpermissive equivalent flag

查看:93
本文介绍了Visual Studio(2015)fpermissive等效标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2015中,是否有等效的GCC标志-fpermissive?这是用于cpp应用程序谢谢

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

推荐答案

理论上等价于/Ze .

但是,这允许特定于Microsoft的扩展,而 -fpermissive 允许特定于GCC的扩展.如果您希望代码具有可移植性,请编写可移植的代码.就这么简单.

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.

这篇关于Visual Studio(2015)fpermissive等效标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆