After installing the DEV-CPP, use the command line and ultraedit to call mingw GCC in devcpp for compilation

Source: Internet
Author: User
Tags ultraedit
Environment variables need to be added
Add method: Right-click my computer> Properties> advanced> environment variable
User variables.

The environment variables to be added include:
1. Path: C:/dev-CPP/bin. If this variable already exists on the computer, add "; C:/dev-CPP/bin" to the original variable, the path must be separated by semicolons.
2. LIBRARY_PATH: C:/dev-CPP/lib
3. c_include_path: C:/dev-CPP/include
4. cplus_include_path: C:/dev-CPP/lib/GCC/mingw32/3.4.2/include;
C:/dev-CPP/include/C ++/3.4.2/backward;
C:/dev-CPP/include/C ++/3.4.2/mingw32;
C:/Dec-CPP/include/C ++/3.4.2;
C:/dev-CPP/include
These are based on devcpp installed in the C root directory as an example, the specific path is also seen in Dev-CPP. Open Dev-CPP, [Tool]-> [compiler options]-> [Directory], these four environment variables correspond to "binary", "library", "C inclusion file", and "c ++ inclusion file" under the [Directory] tab respectively ".

Then you can use the make command in the Command Prompt window to compile the C/C ++ file. Using the make command, we recommend that you do not write a suffix for the file to be compiled, otherwise, "Nothing to be done for XXX. CPP.

After adding environment variables, you can also directly call GCC compilation in UE. The setting method in UE is as follows:
Open the [advanced]-> [toolbar configuration...] dialog box and enter
Command Line: Make % N
Working directory: % P
Menu name: GCC Compilation
Click "insert" on the right and click "OK ". If you click "OK" first, your effort will be wasted.

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.