News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Small bug

Started by ben04, May 18, 2005, 12:47:57 PM

Previous topic - Next topic

ben04

This is the output produced by CodeBlocks when compiling a file:
QuoteSwitching 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. ;)

David Perfors

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

Profic

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