News:

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

Main Menu

How do you change the build options?

Started by j0h, October 27, 2015, 10:33:20 AM

Previous topic - Next topic

j0h

I am compiling SDL programs, and I want to add some SDL libraries.
I have already selected  an SDL project type, which will compile successfully.
but if i then want to add  <SDL/SDL_image> the compiler will then not build properly.
I am 100% certain this is directly realted to the build flags in use, and that if I could give codeblocks the command
g++ -Wall -o "%e" "%f" -lSDL -lSDL_image  to specify compiling with the SDL_Image library,
that my problems would be resolved. I can compile just fine in the terminal, and run.
I asked on stackexchange, but no one has gotten back to me yet.
I have clicked around int the IDE, but I haven't seen any place to modify or include additional build flags.

BlueHazzard

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Quote from: j0h on October 27, 2015, 10:33:20 AM
I have clicked around int the IDE, but I haven't seen any place to modify or include additional build flags.
Then you haven't clicked good enougth ;)
For the compiler:
Project->Build options->Other compiler options
For the Linler
Project->Build options->Linker settings->Other linker options

greetings