Build Workspace not counting errors correctly?

General questions regarding the usage of CodeLite
ColinTaylor
CodeLite Expert
Posts: 152
Joined: Fri Jul 15, 2011 2:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Build Workspace not counting errors correctly?

Post 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
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Build Workspace not counting errors correctly?

Post 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.
ColinTaylor
CodeLite Expert
Posts: 152
Joined: Fri Jul 15, 2011 2:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build Workspace not counting errors correctly?

Post by ColinTaylor »

Thanks for the suggestion which I will try just as soon as I fix my totally messed-up Ubuntu installation <sigh>
ColinTaylor
CodeLite Expert
Posts: 152
Joined: Fri Jul 15, 2011 2:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build Workspace not counting errors correctly?

Post by ColinTaylor »

Many thanks to Jarod42 for the suggestion which works perfectly.
Post Reply