Using the UltraEdit and CL compilers to create a simple C + + development environment

Source: Internet
Author: User
Tags ultraedit

In Visual C + +, each write a simple small program, you have to generate a large string of intermediate files, the other person is very uncomfortable. The following provides a new way to write C + + programs:

(1), download utraledit-32 editor, recommend V11.

(2), in Utraledit-32, click on the menu: Advanced-Tool configuration, there is a dialog, used to set user-defined menu items. Our idea is to set up a compile menu and run menu items, which are used to compile the C + + source files written in utraledit-32. In this way, after writing a good program in utraledit-32, click on the two menus, you can compile the program, and run the program. The results of the run are displayed in the UTRALEDIT-32 output box. The specific settings are as follows.

Compile:

1, fill in the command line: CL%n%e

We know that the CL command under DOS is used to compile source files. The following two parameter%n%e represents the file name of the source file to compile. (Note that each letter must be lowercase to the same below)

2, fill in the Working directory:%p

3, in the menu item name to fill in the compile, this name is the name of the compilation menu item that we want to set.

4, for the following check boxes, select Output to list box and capture output.

5, click the Insert button to create a compilation menu item

Run:

1, fill in the command line:%n

2, fill in the Working directory:%p

3, in the menu item name fill in the run, this name is the name of the running menu item that we want to set.

4, for the following check boxes, select Output to list box and capture output.

5, click the Insert button to create a Run menu item

Click OK to exit

This way, under the Advanced (A) menu, you can see two new menus appear: Compile and run

So, when the source program is written, click on the tool to compile and run the menu, you can compile and run the program. Final build. Obj file and. EXE file. This approach, compared to the use of VC to generate a lot of files, and to create a folder for each program, is not more convenient?

(3) To set the shortcut for compiling and running the menu:

Utraledit-32 is a powerful editor that allows users to define the shortcuts for each menu. The specific approach is as follows:

Click on the menu: Advanced-Configuration, and then select the key map This column, you can see all the menu items corresponding to the shortcut, of course, including the two we have just generated the menu, if you feel that the shortcut keys to these two menus, you can set their own. Don't say it in a more detailed way.

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.