Author Topic: Compiler flags  (Read 4377 times)

Offline Manolo

  • Multiple posting newcomer
  • *
  • Posts: 47
Compiler flags
« on: July 03, 2008, 06:35:03 pm »
Hi
I use MinGW with gcc4.2.1-sjlj and gdb 6.8
I got mad debugging my app because 'call stack' and 'Watches' where working randomly.
Someone at mingw-users told me to compile using -gstabs instead of -g and now everything goes well.
But to do this, I have to use my own makefile.
Is there other way to set/edit complier/linker flags from inside C::B?

Now I want to debug from C::B. Because Target is up to date nothing is done, no debugger is launched.
So I have to get out the linking part of my makefile and let C::B to do it.
Is this intended?

TIA
Manolo

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Compiler flags
« Reply #1 on: July 03, 2008, 07:04:07 pm »
Someone at mingw-users told me to compile using -gstabs instead of -g and now everything goes well.
But to do this, I have to use my own makefile.
Is there other way to set/edit complier/linker flags from inside C::B?

Add "-gstabs" to "Management -> Projects  -> <your_project> ->Build Options -> debug-target -> Compiler settings -> Other options"

Offline Manolo

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Compiler flags
« Reply #2 on: July 03, 2008, 07:55:10 pm »
Quote
Build Options -> debug-target -> Compiler settings -> Other options"

Ah, yes, thank you.
I must sleep a bit more, because I've used this so many times and now I can't see it.

Thanks