Bug #9138 2006-10-15 21:40

game_ender

Launching Program after a failed build

Situation:

I have -Werror on (ie build fails when there are warnings) and have a built executable where Code::Blocks expects one. I make a change that creates a warning during the build and causes the build to fail. Meaning no new executable produced but there still is one.

Problem:

Code::Blocks launches the program anyways (even though it wasn't rebuilt because the compiler saw a warning) and removes warning messages from the message window. If you aren't careful its looks like your program built correctly.

Solution:

If any source file is older than the current executable don't launch the program and keep the message pane (with the compiler's warning message) intact. Possibly pop up a message telling the user the build failed.

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to