News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

how can I set -g option just for ONE .cpp file?

Started by huzhongshan, March 17, 2011, 11:32:55 PM

Previous topic - Next topic

huzhongshan

In my project , there are many cpp files , I just want to set -g option in one cpp file in the project, i.e. set the -g individually for cpp file .
I tried the use custom build option (properties->advanced), but It seems not to work( I use this: $compiler $options -g $includes -c $file -o $object).

Where and How can I set the -g option individually ?

MortenMacFly

Quote from: huzhongshan on March 17, 2011, 11:32:55 PM
Where and How can I set the -g option individually ?
Works fine here.

Well... version / platform / configuration, please? :?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

huzhongshan

I use gcc instead of $complie  , it works now.
thanks