精英国旗做什么? [英] What does the fpermissive flag do?
问题描述
我只是想知道在g ++编译器中 -fpermissive
标志做什么?我得到:
错误:取地址的临时[-fpermissive]
我可以解决通过给 -fpermissive
标志给编译器。
I'm just wondering what the -fpermissive
flag do in g++ compiler? I am getting:
error: taking address of temporary [-fpermissive]
which I can solve by giving -fpermissive
flag to the compiler.
感谢
编辑:
我刚找到导致临时地址错误的部分!
I just found what was causing the temporary address error part! Thanks guys, I'm gonna fix that part right now.
推荐答案
从文档:
-fpermissive
将关于不一致代码的诊断从错误降级为警告。
因此,使用 -fpermissive
将允许编译一些不合格的代码。
-fpermissive
Downgrade some diagnostics about nonconformant code from errors to warnings. Thus, using-fpermissive
will allow some nonconforming code to compile.
底线:不要使用,除非你知道你在做什么!
Bottom line: don't use it unless you know what you are doing!
这篇关于精英国旗做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!