Mingw environment variable configuration

Source: Internet
Author: User

First, find the download link on www.mingw.org, and then download the network installer, which is very small. The latest version is 5.1.6. Then click the mingw-5.1.6.exe, and then keep next, Select Download only, so that the next redo not go to the Internet to find. After the installation, click "mingw-5.1.6.exe" to install the package. However, the package is not downloaded again. When selecting the installation package, you can select all or by default, and then install the package, which is very simple.
It cannot be used after installation, because no environment variables have been set. Next we will set the environment variables. The installation path is in the C: \ mingw directory.
Right-click my computer and choose Properties> advanced> environment variable. Then:
1. Add c: \ mingw \ bin to the path. Remember to add a semicolon if there are other variables in it. The semicolon must be entered in the English input mode.
2. Create a New LIBRARY_PATH variable. If yes, add c: \ mingw \ Lib to the value, which is the location of the standard library.
3. Create the c_include_path variable and set it to c: \ mingw \ include.
4. Create a cplus_include_path variable with the value c: \ mingw \ include \ c ++ \ 3.4.5; C: \ mingw \ include \ c ++ \ 3.4.5; C: \ mingw \ include \ c ++ \ 3.4.5 \ backward; C: \ mingw \ include.

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.