Win under g++ installation, environment configuration, etc.

Source: Internet
Author: User

Tools: Eclipse for C + +;

Because Eclipse does not integrate the C + + compiler and running environment, it needs to install g++ and so on itself;

Method:

Use MinGW to download and install the required tools;

: http://www.mingw.org/download.shtml

1. Installation and download:

Things to Install, (online)

After installation: MinGW, the following screen will pop up:


After that, right-click on the file you want to install, then "make for Installation", then select "Installation" and "Apply Changes" in the upper-left corner, then tap "Apply" in the popup screen.


2. Environment configuration:

Variable Name variable value
PATH C:/mingw/bin;
Library_path C:/mingw/lib
C_includede_path C:/mingw/include
Cplus_include_path c:/mingw/include/c++/3.4.2; C:/mingw/include/c++/3.4.2/mingw32; C:/mingw/include/c++/3.4.2/backward; C:/mingw/include;

Description:cplus_include_path do not need to configure also can, because I installed the Wingwin directory is not those things, the other several should be required;


3. Create the project:

Check the option in the red box, otherwise you may not be able to perform other errors;

After creation, compile, execute, ok~

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.