Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Manolo on July 03, 2008, 06:35:03 pm

Title: Compiler flags
Post by: Manolo 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
Title: Re: Compiler flags
Post by: Jenna 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"
Title: Re: Compiler flags
Post by: Manolo 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