Windows under Installation configuration MinGW GCC debugging environment

Source: Internet
Author: User

    • Download installation files: Sourceforge 64-bit system installation options remember to choose X86_64. You can also choose to download the compressed package If you are not connected to the server during installation.
    • Configure the environment variables, assuming the MinGW installation directory is C:\mingw-w64\mingw64:
    1. Add the MinGW Bin folder to the system environment variable path: Administrator rights command line execution:
      PATH "%PATH%; C:\mingw-w64\mingw64\bin
    2. Set the Mingw_home variable:
      Setx mingw_home "C:\mingw-w64\mingw64"
    • Save the following as a batch file, such as BUILD.bat:
      %1 MyApp

      Use:

      BUILD.bat HelloWorld.cpp

      The target CPP file is compiled, and the output. exe file is executed if it succeeds.

    • Attached: C + + STL Quick Search Manual: Zeal

Windows under Installation configuration MinGW GCC debugging 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.