User forums > Using Code::Blocks
Small issues when trying to build and run in Linux (Ubuntu 6.06)
jenriquez:
Hi, I installed CB today, I'm using yesterday's CB build (the .deb package).
The problem I have is that CB is treating warnings as errors, and when I hit F9 the program won't run if it finds some warning messages. A program that shows 3 warning messages will give this output in the Build messages window:
Note: "aviso" = "warning" (my system is in Spanish).
ahorcado.cpp:103: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:129: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:137: aviso: comparación entre expresiones enteras signed y unsigned
:: === Build finished: 3 errors, 0 warnings ===
As you can see, it's not counting the messages as warnings but as errors :?.
Another small problem is when creating a new project, in the "New from template" window, if I switch the "View as" option, the icons don't update and nothing is drawn to the window (icons "disappear").
Regards,
JJ Enríquez.
tiwag:
the parsing of compiler output works at the moment only with english compiler messages ... :shock:
jenriquez:
Oh, that's the problem :P.
Thanks for letting me know, hope it works with other languages soon :).
mandrav:
Go to "Settings->Compiler and debugger->Other" press "Advanced options" and edit the strings in the output regular expressions to match your language.
Or, use a shell script to launch C::B. Something like this:
--- Code: ---export LC_MESSAGES=en_US
codeblocks
--- End code ---
jenriquez:
Thanks mandrav, that did the trick ;).
--- Quote ---:: === Ahorcado, Debug ===
ahorcado.cpp:112: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:138: aviso: comparación entre expresiones enteras signed y unsigned
ahorcado.cpp:147: aviso: comparación entre expresiones enteras signed y unsigned
:: === Build finished: 0 errors, 3 warnings ===
--- End quote ---
Keep up the good work!
Regards,
José Jorge Enríquez.
Navigation
[0] Message Index
[#] Next page
Go to full version