Code::blocks verbose build

前端 未结 2 1288
甜味超标
甜味超标 2021-01-16 13:30

I want to see the actual commands sent to g++ during a Code::Blocks build. I want to see exactly what command-line arguments it uses in the compile and link ste

相关标签:
2条回答
  • 2021-01-16 13:46

    Besides the logging to html you can also go to Settings->Compiler and debugger->Global compiler settings->{slide tabs to the right}->Other Settings and in that tab set 'Compiler Logging:' to 'full command line' (from drop down menu).

    Now you can see the gcc command line in the console when you build.

    0 讨论(0)
  • 2021-01-16 14:08

    I see you already solved the problem, but there's still a bit more to that.

    Code::Blocks can write a build log when the following option is checked: Settings->Compiler and debugger->Global compiler settings->{slide tabs to the right}->Build options tab->Save build log to HTML.

    Besides, you can use "cbp2make" to convert Code::Blocks projects to makefiles. This is not a plugin like "cbMakeGen", but a stand-alone command-line tool. See also http://forums.codeblocks.org/index.php/topic,13675.0.html .

    0 讨论(0)
提交回复
热议问题