Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can build options be changed in code::blocks?

I recently started using code::blocks, so I'm a newb here. I am writing a game, in SDL with C++ and all of the code I am writing depends on the build options similar to this: g++ -Wall -o "%e" "%f" -lSDL -lSDL_image

Code::Blocks seems to work fine when I select to start a NEW SDL project, and convert my programs to project files. However, I have many source files, and I dont want to convert them all to project files, I would rather just change the build options for code blocks.

I am using version svn 10528, on Linux if that helps. I have formerly been using geany, which was very simple to change, and set build options in.

like image 761
j0h Avatar asked Dec 01 '25 15:12

j0h


1 Answers

Ok, I found it, In Code::Blocks, go to Project> Build options a window appears. it lists build options. right click on that and add new. from there you can give it a name, add compiler options, and add linker options.

enter image description here

save it and youre done.

I saw some errors in the IDE when trying to use this, and found if you click continue it works fine. if you click cancel, the IDE crashes.

like image 85
j0h Avatar answered Dec 04 '25 05:12

j0h



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!