mingw g ++用错误的语言给出警告(德语而不是英语) [英] mingw g++ gives warnings in wrong language (german instead of english)
问题描述
我的问题是以下:
当我在Windows 7笔记本电脑上使用eclipse(Juno,64bit,Java 7u3)编译C ++项目时,出现德语错误/警告。这会导致在eclipse中显示为错误的警告。
Windows(7,64位)设置为:
显示语言: em>中文
格式:德语(瑞士)
位置:瑞士
非Unicode程式的语言:英语(加拿大)
在我的其他Windows 7(64位)电脑上有完全相同的设定,
- 添加-Duser.language = en
无效 - 将格式更改为英语。
$ b $ - 许多不同的东西我不记得了(例如
中的环境变量) eclipse等)
再次,没有帮助
终于解决了:D
我刚刚添加了一个新的环境varibale。我仍然没有线索为什么它在一台计算机上工作(因为那一个我没有设置这个变量),但至少它终于工作在我的笔记本电脑上,是(我认为)一个好的(正确的?)解决方案: / p>
- > 系统 - > 环境变量... - > - > 新建... - >变量: LC_ALL en_US.UTF-8
现在我在编译时遇到英语警告/错误,并且eclipse会正常运行。
My problem is the following:
When I compile a C++ Project with eclipse (Juno, 64bit, Java 7u3) on my Windows 7 laptop, I get german errors/warnings. This results in warnings showing as errors in eclipse.
Windows (7, 64bit) is set to:
Display Language: English
Format: German (Switzerland)
Location: Switzerland
Language for non Unicode programs: English (Canada)
On my other Windows 7 (64bit) PC I have the exact same settings and don't have any problems.
I tried:
- Adding -Duser.language=en to the end of my eclipse.ini file.
Which did not work - Changing the Format to English.
Which actually worked but is not really an option due to the wrong format in other places - Many different things I can't remember (e.g. Environment variables in
eclipse, etc.)
Again, nothing helped
I finally solved it :D
I just added a new environment varibale. I still have no clue why it works on one computer (as on that one I have not set this variable) but at least it finally works on my laptop as well and is (I think) a good (the correct?) solution:
Control Panel -> System -> Advanced System Settings -> Environment Varibales... -> System variables -> New.. -> Variable: LC_ALL, Value: en_US.UTF-8
Now I have english warnings/errors when I compile and eclipse behaves as it should.
这篇关于mingw g ++用错误的语言给出警告(德语而不是英语)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!