User forums > Using Code::Blocks
-no-fstack-protector & Code::Blocks
lacao:
Hello,
I just want to know under Code::Blocks (Windows XP Pro SP2) I can disable the stack protection with the -no-stack-protector, under Linux with GCC I will run:
gcc -no-fstack-protector main.c -o main.o
but with Code::Blocks and Windows, I don't know how to do that :s
If anyone knows this...
Sorry for my english speaking ;)
killerbot:
you can add it at :
- compiler level : compiler and debugger settings of CB
- compiler options of your project
- compiler options of your target
Your choice.
For example : Project build options ; choose your target : compiler settings : Other options : there you paste your option. Things pasted in there are added to the command invocation of gcc.
lacao:
Thanks for your reply :)
I have already intend this two last solutions, but i don't see where I can make at the compiler level.
Is it possible -no-fstack-protector could not be given to the compiler as option, or something like that? because Code::Blocks says me :
mingw32-gcc.exe unrecognized option '-no-fstack-protector'
I have checked under linux with the man of gcc and the syntaxe options is good, and works under linux with gcc, so is it possible mingw don't know this option?
Still sorry for my english ... :(
stahta01:
Did you Try -fno-stack-protector ?
What version of GCC?
Tim S
Jenna:
--- Quote from: stahta01 on April 26, 2008, 05:58:20 am ---What version of GCC?
Tim S
--- End quote ---
Hi Tim,
you are a little faster than me.
That was my question too.
I'm not sure, but afaik the stack-protection commandline is implemented since gcc 4.1.
Navigation
[0] Message Index
[#] Next page
Go to full version