Page 1 of 1

Build Workspace not counting errors correctly?

Posted: Mon Jun 01, 2015 6:53 pm
by ColinTaylor
Linux Ubuntu 14.04, Codelite 8.0, MinGW 4.7.1, wxWidgets 3.0

I noticed the following during a Build Workspace operation.

The g++ linker correctly detected an error in my build file ("g++: error: unrecognized command line option ‘-mwindows’"),
but I noticed Codelite hasn't updated the number of errors (i.e. it still says "0 errors, 0 warnings")

Is it intentional for Codelite not to count these errors? because this makes it quite easy to miss the fact that the build contains errors.

Below are the final few lines of the build output (lines truncated a bit to aid readability)
----------Building project:[ ZipBackup - LinuxRelease ]----------
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipBackup/ZipBackupGui.cpp" -O2 -Wall -I/usr/local/lib/wx/include/gtk2-unicode-3
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipBackup/ZipBackupMain.cpp" -O2 -Wall -I/usr/local/lib/wx/include/gtk2-unicode-
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipBackup/BKSFileParser.cpp" -O2 -Wall -I/usr/local/lib/wx/include/gtk2-unicode-3.
g++ -o ./Release/ZipBackup @"ZipBackup.txt" -L. -L../WxReusablesLib/Release -lWxReusablesLib -mwindows -s -L/usr/local/lib -pthread -lw

g++: error: unrecognized command line option ‘-mwindows’
make: *** [Release/ZipBackup] Error 1
0 errors, 0 warnings


/bin/sh -c 'make -j 1 -e -f "ZipExtractor.mk" all'
----------Building project:[ ZipExtractor - LinuxRelease ]----------
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipExtractor/ZipExtractorMain.cpp" -O2 -I/usr/local/lib/wx/include/gtk2-unicode-3.-DWXUSINGDLL -D__WXGTK__ -pthread -D__WX__ -o ./Releaseg++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipExtractor/ZipExtractorGui.cpp" -O2 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipExtractor/ZipFileItem.cpp" -O2 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/local/inc
g++ -c "/home/colin/CodeliteWorkspaces/ActiveProjects/ZipExtractor/ZipOptionsDialog.cpp" -O2 -I/usr/local/lib/wx/include/gtk2-unicode-3.0 -I/usr/loc
g++ -o ./Release/ZipExtractor @"ZipExtractor.txt" -L. -L../WxReusablesLib/Release -lWxReusablesLib -mwindows -s -L/usr/local/lib -pthread -lwx_gtk2u_core-3.0
g++: error: unrecognized command line option ‘-mwindows’
make: *** [Release/ZipExtractor] Error 1
0 errors, 0 warnings

Re: Build Workspace not counting errors correctly?

Posted: Tue Jun 02, 2015 12:12 pm
by Jarod42
Error are counted with the pattern matching provided in Settings... -> Build settings ... -> Compilers -> Pattern.

I suppose that the line is not marked red, so the line doesn't match any error pattern.
you may try to add corresponding pattern to solve that.

Re: Build Workspace not counting errors correctly?

Posted: Tue Jun 02, 2015 1:17 pm
by ColinTaylor
Thanks for the suggestion which I will try just as soon as I fix my totally messed-up Ubuntu installation <sigh>

Re: Build Workspace not counting errors correctly?

Posted: Tue Jun 02, 2015 1:27 pm
by ColinTaylor
Many thanks to Jarod42 for the suggestion which works perfectly.