MinGW的非本地化版本? [英] Non-localized version of MinGW?

查看:104
本文介绍了MinGW的非本地化版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过gcc下载未本地化的MinGW? 如果系统语言不是英语,则本地化的gcc会使所有警告变为CodeBlocks中的错误.这是一个错误,也报告在这里:

Is there a way to download MinGW with gcc, that is not localized? Localized gcc causes all warnings to become errors in CodeBlocks, if the system language is not English. This is a bug also reported here:

http://forums.codeblocks.org/index.php/topic,9489.msg67120.html

该线程还包含针对该问题的有效解决方案,但是如果可以首先下载一个非本地化版本,则将更加方便.

The thread also contains a working solution to the problem, but if one could download a non-localized version in the first place, this would be much more convenient.

推荐答案

Gcc& mingw中的G ++使用环境变量LC_ALL定义顶级语言(如果设置了此变量),默认情况下使用系统区域设置,如果不存在区域设置则使用英语.

Gcc & G++ in mingw use the environment variable LC_ALL to define the language at top level (if this variable is set), defaulting with the system locale if available, and then english if the locale does not exist.

如果要强制这些工具以英语输出消息,只需添加/编辑值为 en_US.UTF-8

If you want to force those tools to output their messages in english, just add/edit the environment variable LC_ALL with the value en_US.UTF-8

这篇关于MinGW的非本地化版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆