How to change the optimization level with Eclipse + CDT + MinGW?

若如初见. 提交于 2020-01-04 05:08:57

问题


I am writing some C code with Eclipse + CDT + MinGW.

The compilation output always shows:

Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o Math.o "..\\Math.c" 

How can I change the command line parameters such as -O0, -Wall?

(I am new to Eclipse IDE.)


回答1:


For GCC, the setting is in project properties => C/C++ Build => Settings => GCC C Compiler => Optimization.



来源:https://stackoverflow.com/questions/26689632/how-to-change-the-optimization-level-with-eclipse-cdt-mingw

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