Use G ++ of editplus and mingw to configure the C ++ compiling and running environment

Source: Internet
Author: User

Today, I tried to use editplus and G ++ for configuration. Next, let's take a look at my configuration process,

Install, set, and use mingw in win7

)

1.Open editplus's "tool"-> "Configure user tool", and then we will see the user tool configuration interface, such:

If we have already configured many tools, we recommend that you group the tools. You only need to click the "group name" button to group the tools. For example:

2.First, configure the C ++ compilation function.

 
Command: D: \ mingw \ bin \ g+cmd.exe parameter: "$ (filepath)"-o "$ (filenamenoext)" Initial Directory: $ (filedir) Action: capture output

Note:D: \ mingw \ is my mibgw installation directory. You need to modify it based on your actual situation.
Detailed settings are as follows:

3.Next, configure the C ++ running function.

 
Command: $ (filenamenoext) parameter: initial Directory: $ (filedir) Action: None

Detailed settings are as follows:

4.Finally, to make it easier for us to open the Save folder of the C ++ source file at any time, let's configure the working directory. If you feel unnecessary, skip it.

 
Command: % WinDir % \ assumer.exe parameter:/N,/E, D: \ Dev \ c ++ initial Directory: Action: Close the window when exiting

Note:/N,/E, D: \ Dev \ c ++ is the directory for saving my c ++ source files. You need to modify it based on your actual situation.
Detailed settings are as follows:

You can use editplus to develop C ++.CodeAutomatic completion and code prompts. You can configure the. cpp file and. STX file in the editplus installation directory respectively. For example:

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.