I'm new to code::Blocks, and so far so good! I'm a student, and I will be compiling ALL of my C projects usng the -std=c99 flag.
I know how to set that for each project. My question is: How do I set the -std=c99 flag for ALL projects- that is GLOBALLY.
Many thanks!
Duplicate a Compiler setting.
Change the new Compiler to have the GLOBALLY settings you want.
Remember to set this new compiler as default.
Remember to exit CB and restart CB (This is because some CB versions have issues using a new/duplicated/renamed Compiler until after reboot).
1. "Settings" -> "Compiler"
2. Select the compiler to duplicate.
3. Click on copy
4. Enter name I used "GNU GCC Compiler C only"
5. Toolchain executable change linker from "mingw32-g++.exe" to "mingw32-gcc.exe" needed to use C linker instead of C++ linker
6. add "--std=c99" to "Other options" without the double quote under Compiler Settings.
7. Set compiler as default
8. exit and restart CB
Tim S.