本文介绍了你最喜欢的g ++选项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是C ++程序设计的新手。
编译时,我从不使用任何选项。
这是我的日常命令:
g ++ MyCode。 cc -o MyCode
对于安全实践,最好的选择是
?
解决方案
g ++ -W -Wall -Werror
/ pre>
将显示所有错误和警告,并将其视为错误。
I am a newbie in C++ programming. When compiling I never use any option.
This is my day to day command:
g++ MyCode.cc -o MyCode
For safety practice what's the best optionto use?
解决方案g++ -W -Wall -Werror
Will display all errors and warnings possible and treat them as errors.
这篇关于你最喜欢的g ++选项是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!