Eclipse + CDT + mingw-w64 build C + + development environment

Source: Internet
Author: User

In the development of C + + under Eclipse, there are CDT plug-ins that can be used and, of course, compilers like GCC and g++ to work properly.

The use of the CDT plugin is not introduced here, this can be found on a random search

First download the Mingw-w64 installer from here (Mingw-w64 is the replacement of the previous 32-bit version MinGW, now can compile 32, 64-bit programs)

After downloading, click Step by step

Notice whether the selection is 64-bit or 32-bit? Windows?

Download the following directory structure after installation

Add the Bin directory under this directory to the system environment,

You can test to see if it compiles properly.

Open Eclipse, create a new C + + project, you can see all the compilation environment, choose MinGW gcc, and then OK.

A Hello world first.

Ctrl+b compile the project, run can see the output description is correctly configured

Eclipse + CDT + mingw-w64 build C + + development environment

Related Article

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.