User forums > Using Code::Blocks

Stopping Execution Of C++ Console Application After Errors v20.03 linux

(1/1)

EverydayDiesel:
Hello,

I upgrade to CodeBlcoks v20.03 and now, after hitting F8 to compile, if there is an error it continues program execution anyways.  What settings do I need to change to halt execution if there is an error while compiling?

Thanks in advance!

stahta01:
If the problem is that it continues building after the first error try this:

Settings -> Compiler
Tab: Build Options
Option max number of errors to log: Set to 1 (I normally use 10 or 0)

Tim S.


EverydayDiesel:
hello i tried 1 and 10 and it seemed to work about half of the time.

this is crazy that it continues execution when there are compile errors

oBFusCATed:
F8 is the shortcut for Debug -> Start.
Is this the command you're executing?

You can check if there isn't disabled dialog in Settings -> Environment -> Disabled dialogs.

Navigation

[0] Message Index

Go to full version