User forums > General (but related to Code::Blocks)

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

(1/1)

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 ?

--- End quote ---
Works fine here.

Well... version / platform / configuration, please? :?

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

Navigation

[0] Message Index

Go to full version