News:

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

Main Menu

Compiler flags

Started by Manolo, July 03, 2008, 06:35:03 PM

Previous topic - Next topic

Manolo

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

Jenna

Quote from: Manolo on July 03, 2008, 06:35:03 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"

Manolo

QuoteBuild 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