News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Showing compiler warnings

Started by johnmrowe, September 07, 2011, 12:01:06 PM

Previous topic - Next topic

johnmrowe

I teach an introductory C course for physics students. In the past we have used XCode which has the useful feature that it highlights both errors and warnings in the left margin of the offending line ("the gutter"). This is really useful, particularly as gcc shows mistakes in format statements, which are a frequent problem for beginners.

I believe that Code::Blocks is currently limited to just showing the first error, rather than them all as XCode does, but is there a way for it to show the first warning if there are no errors?

Thanks

John



stahta01

Settings -> Compiler and Debugger
Tab "Compiler Options"
Under sub-tab "Compiler Flags": Set the warning flags here; if not listed add under "Other Options"



Settings -> Compiler and Debugger
Tab: Other Settings (far right tab)
See Section Compiler independent Options for Error number settings

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]