Author Topic: Error in build log window  (Read 6796 times)

connyosis

  • Guest
Error in build log window
« on: November 09, 2005, 11:36:07 pm »
Decided to compile my project with warnings enabled, and then noticed that in the build log window, the error and warning report is switched around.
When I have warnings, it reports them as errors:

...
Linking executable labyrinth...
Process terminated with status 0 (0 minutes, 23 seconds)
44 errors, 0 warnings

Anyone else noticed this?

(And yes, those warnings will be taken care of)

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: Error in build log window
« Reply #1 on: November 10, 2005, 12:00:10 am »
I think warning and error recognition is compiler-specific, so it might help to mention which one you are using.
For what it's worth, I've never noticed this problem using MinGW.

connyosis

  • Guest
Re: Error in build log window
« Reply #2 on: November 10, 2005, 07:06:06 am »
I'm using gcc 3.3.6 under Linux. Not that this bug (If it is a code::blocks bug) is a big deal, just thought I'd point it out.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Error in build log window
« Reply #3 on: November 10, 2005, 08:45:35 am »
It would help if you posted a couple of these warnings that are reported as errors.
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Error in build log window
« Reply #4 on: November 10, 2005, 12:44:03 pm »
44 errors, 0 warnings
Did you enable the "Treat as errors warnings demanded by strict ISO C and ISO C++" (-pedantic) option in the compiler settings?

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

connyosis

  • Guest
Re: Error in build log window
« Reply #5 on: November 10, 2005, 02:22:23 pm »
Nope, treat warnings as errors is not enabled.
Some examples of these warnings are:


In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:5,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorobject.h:17: warning: `
   class CEditorObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:6,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorcurrentobject.h:11: warning: `
   class CEditorCurrentObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:13: warning: `
   class CEditorPalette' has virtual functions but non-virtual destructor
In file included from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:18: warning: `
   class CMapEditor' has virtual functions but non-virtual destructor
In file included from src/capplication.h:11,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cgame/cgame.h:13: warning: `class CGame'
   has virtual functions but non-virtual destructor
Compiling src/capplication.cpp...
In file included from src/ctestcontext.h:9,
                 from src/capplication.h:6,
                 from src/capplication.cpp:1:
src/cbutton.h:6: warning: `class CButton' has virtual functions but non-virtual
   destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:5,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from src/capplication.cpp:1:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorobject.h:17: warning: `
   class CEditorObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:6,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from src/capplication.cpp:1:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorcurrentobject.h:11: warning: `
   class CEditorCurrentObject' has virtual functions but non-virtual destructor
src/cclickable.cc: In member function `virtual bool CClickable::checkOverlap()
   ':
src/cclickable.cc:24: warning: control reaches end of non-void function


Under build messages these are all reported as warnings, not errors.