News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Adding more flags to GCC

Started by Bruno, November 26, 2009, 09:39:54 PM

Previous topic - Next topic

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!