Page 1 of 1

Why some of the same warnings are treated as errors?

Posted: Thu Sep 05, 2013 1:29 pm
by Mafuyu
Hi ,
It's OK in windows.But in ubuntu 12.10...
Here is the screenshot http://imagebin.org/269921
I don't use -werror.The gcc version is 4.7.2.
Please forgive my chinese english.
thx!

Re: Why some of the same warnings are treated as errors?

Posted: Thu Sep 05, 2013 2:21 pm
by Jarod42
The build succeeds with some warnings (reported as Error).

You have to fix the pattern in Settings-> Build Settings... to reflect your language.
(or use an english gcc output see Re: Setting Language - how to)

Re: Why some of the same warnings are treated as errors?

Posted: Thu Sep 05, 2013 6:28 pm
by eranif
Mafuyu wrote: don't use -werror.The gcc version is 4.7.2.
Please forgive my chinese english.
Your gcc is set to report errors in chinese.. this makes it hard for codelite to detect and parse.
from codelite's menu bar, Settings -> Environment variables

and add this line:

Code: Select all

LC_ALL=C
Eran

Re: Why some of the same warnings are treated as errors?

Posted: Fri Sep 06, 2013 9:11 am
by Mafuyu
Jarod42 wrote:The build succeeds with some warnings (reported as Error).

You have to fix the pattern in Settings-> Build Settings... to reflect your language.
(or use an english gcc output see Re: Setting Language - how to)
It returns to normal.Thanks for your reply.

Re: Why some of the same warnings are treated as errors?

Posted: Fri Sep 06, 2013 9:13 am
by Mafuyu
eranif wrote:
Mafuyu wrote: don't use -werror.The gcc version is 4.7.2.
Please forgive my chinese english.
Your gcc is set to report errors in chinese.. this makes it hard for codelite to detect and parse.
from codelite's menu bar, Settings -> Environment variables

and add this line:

Code: Select all

LC_ALL=C
Eran
It works.Thanks a lot for your help.