Comparison of Qt MinGW and MSVC

Source: Internet
Author: User
Tags comparison
They are very useful compiler tools, but they are not compatible with the good. When your project uses MinGW compilation, there is a problem when you want to compile the generated library with a msvc. When compiling a project using MinGW, the Lib used is also MinGW compiled. If you just develop Windows platform software, it is best to use QT msvc combination, so you can use a large number of third-party LIB, there are many construction instructions, after all, window on Msvc is the king. Coding problem, QT5 qstring default is the UTF8 format, QT5 strongly recommend the source code in UTF8 format storage. But msvc only support with the BOM UTF8 format, Qmake does not support the UTF8 format with the BOM, forcing me to use only GBK it. In this case, use QT5, every time to Qstring::fromlocal8bit ("I am Chinese"), and even if the BOM problem solved, the source code is UTF8. MSVC's execution code is also GBK. Here is some discussion of this problem.

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.