Installation configuration and usage of g++ under Windows

Source: Internet
Author: User

After the MinGW is installed, it is a useful set of tools that will be included in the $/bin directory (where $ represents the installation path you chose)).

Environment settings: For our users, it is best to use tools that are simple and convenient. So, we need to set up the environment so that we can use MinGW.

For the setting, we only need to add $/bin to the path variable in the environment variable, so our GCD compilation environment will match well.

For example, my installation path is d:cbcodeblocksmingwbin; Just add the path to it.

However, we also need to use MINGW to provide us with the C + + standard library, and header files, so we need to set the system lookup path,

As follows: Environment variable name environment variable value

MinGW $ ($) Represents the installation path you have chosen, such as: D:cbcodeblocksmingw, make your own changes.

Library_path%mingw%/lib

Then use CMD to enter the path where the CPP is located, and then enter g++ hello.cpp

On the desktop will be more than one a.exe file, input command a can run and print;

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.