User Tools

Site Tools


programming:codeblockscompilerflags

Under Construction

Codeblocks Compiler Flags

Codeblocks contains settings for setting compiler flags, which point out coding errors or warn users of potential errors. These flags can help catch different errors with useful messages that aid in quicker debugging.

Finding the Compiler Settings

Codeblocks comes with these compiler settings built in, but are not enabled by default. These settings have to be enabled manually, and can be found under the settings toolbar option, under 'compiler'. This will open a new window that contains the many different flags that the Codeblocks editor can use.

What Settings will be Useful to You

For most students, the compiler flags that will be most useful are general purpose, and a lot of the available settings may not apply or inhibit. The recommended setting would just to enable '-Wall', which will enable all compiler flags, along with others that aren't listed individually (such as a flag on non-void functions that lack a return statement). Here are some recommended settings to enable individually, if you don't want to enable all:

programming/codeblockscompilerflags.txt · Last modified: 2019/02/12 22:22 by coatsd