User forums > Help
Small bug
(1/1)
ben04:
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
--- End quote ---
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.
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"
Navigation
[0] Message Index
Go to full version