Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on March 17, 2011, 11:32:55 pm

Title: how can I set -g option just for ONE .cpp file?
Post by: huzhongshan on March 17, 2011, 11:32:55 pm
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 ?
Title: Re: how can I set -g option just for ONE .cpp file?
Post by: MortenMacFly on March 18, 2011, 07:33:45 am
Where and How can I set the -g option individually ?
Works fine here.

Well... version / platform / configuration, please? :?
Title: Re: how can I set -g option just for ONE .cpp file?
Post by: huzhongshan on March 18, 2011, 09:57:02 am
I use gcc instead of $complie  , it works now.
thanks