User forums > Using Code::Blocks
Adding more flags to GCC
(1/1)
Bruno:
Hello All!
Maybe it is a silly doubt, but how can i add others flags not listed in <All Categories> of Compiler flags.
I am using Linux 8.02 Code::Block, and I want to use a specif compilation line, just like:
gcc -lstdc++ -lreadline -lncurses main.cpp
Is there anyway that I can do that? I mean, put the flags -lstdc++ -lreadline -lncurses?
Thanks in advance!
Bruno!
Jenna:
Your example flags are link-libraries, so you can add them to the projects "Build options -> Linker settings -> Link libraries:", just add "stdc++", "readline" and "ncurses" (without the quotes) to the libraries list.
Other compiler flags can be set in "Build options -> Compiler settings -> Other options" ( for additional linker flags there is a similar tab in the "LInker settings" too).
Bruno:
Thanks a Lot!
It is working perfectly nice!
Cheers!
Navigation
[0] Message Index
Go to full version