Author Topic: How do you change the build options?  (Read 4661 times)

j0h

  • Guest
How do you change the build options?
« on: October 27, 2015, 10:33:20 am »
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 
Code
<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
Code
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: How do you change the build options?
« Reply #1 on: October 27, 2015, 02:46:01 pm »
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

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