Code::Blocks Forums

User forums => Help => Topic started by: ben04 on May 18, 2005, 12:47:57 pm

Title: Small bug
Post by: ben04 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. ;)
Title: Small bug
Post by: David Perfors 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.
Title: Small bug
Post by: Profic 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"