User forums > Using Code::Blocks

Showing compiler warnings

(1/1)

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.

Navigation

[0] Message Index

Go to full version