User forums > Using Code::Blocks
How do you change the build options?
(1/1)
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
--- Code: ---<SDL/SDL_image>
--- End code ---
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
--- End code ---
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.
--- End quote ---
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
Navigation
[0] Message Index
Go to full version