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