Author Topic: how can I set -g option just for ONE .cpp file?  (Read 3165 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
how can I set -g option just for ONE .cpp file?
« 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 ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: how can I set -g option just for ONE .cpp file?
« Reply #1 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? :?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
Re: how can I set -g option just for ONE .cpp file?
« Reply #2 on: March 18, 2011, 09:57:02 am »
I use gcc instead of $complie  , it works now.
thanks