Mingw console garbled

Source: Internet
Author: User

From:

Http://hi.baidu.com/dbzhang800/item/14d738cf9a24513d45941642

I personally tested it in 20130511. Thanks to the original author.

20110815 update: Some netizens mentioned simply adding an environment variable lang = en. See qtcn.org

Since the built-in mingw4.4 of qtcreator is installed and the C ++ program is compiled, garbled characters are displayed:

E: \ cpp_t> C ++-wall B. cpp
B. cpp: In function compute using NT main () using?
B. cpp: 22
B. cpp: 23

After several days, I finally thought of the locale problem.

% Mingw % \ share \ locale \ zh_cn \ lc_messages

It seems that the Simplified Chinese version of mingw is not ready yet. Delete it directly in English.

E: \ cpp_t> C ++-wall B. cpp
B. cpp: In function 'int main ()':
B. cpp: 22: Warning: deprecated conversion from String constant to 'Char *'
B. cpp: 23: Warning: deprecated conversion from String constant to 'Char *'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.