Author Topic: Small bug  (Read 2716 times)

ben04

  • Guest
Small bug
« on: May 18, 2005, 12:47:57 pm »
This is the output produced by CodeBlocks when compiling a file:
Quote
Switching to target: default
Compiling: value\user_type.cpp
value/user_type.cpp:71:2: warning: no newline at end of file
Linking console executable: C:\progs\cpp\ides\CodeBlocksv1_finalbeta\projects\interpreter\interpreter.exe
Process terminated with status 0 (0 minutes, 4 seconds)
1 errors, 0 warnings

There is 1 warning and not 1 error. Oh well no big deal but I though I might point it out. ;)

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Small bug
« Reply #1 on: May 18, 2005, 12:51:53 pm »
isn't this a bug of the compiler? I might be wrong, but I think that C::B gets the output directly from the compiler.
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
Small bug
« Reply #2 on: May 18, 2005, 01:08:39 pm »
AFAIR, gcc do not output any counts. C::B counts this itself. And seems misdetect warning as error.

Just looked into compiler output parsing:
it detects this as "Preprocessor error" due to two numbers after filename, to fix this goto Settings->Compiler->Other->Advanced options->Output parsing and in "Parsing expressions" move "Preprocessor error" below "Compiler warning".

UPD: As I suppose from output this is GCC, thus you must apply above changes to "GNU GCC Compiler"
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil