Why some of the same warnings are treated as errors?

CodeLite installation/troubleshooting forum
Mafuyu
CodeLite Curious
Posts: 8
Joined: Thu Sep 05, 2013 9:08 am
Genuine User: Yes
IDE Question: C++
Contact:

Why some of the same warnings are treated as errors?

Post 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!
User avatar
Jarod42
CodeLite Expert
Posts: 240
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

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

Post 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)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Mafuyu
CodeLite Curious
Posts: 8
Joined: Thu Sep 05, 2013 9:08 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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.
Mafuyu
CodeLite Curious
Posts: 8
Joined: Thu Sep 05, 2013 9:08 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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.
Post Reply