notepad++ and MinGW's first HelloWorld

Source: Internet
Author: User
Tags ultraedit

To be honest, my computer is really not good, open a virtual machine, memory is full, open a VS, Memory is full. Then on a hot summer day, I haven't done anything yet, and the heat from the computer has made me sweat ....

Then, I think, I have not written anything too complicated program, make a most basic configuration should not die ... Then I investigated how to compile and run with a text editor. In the open source first purpose, I investigated the GNU in the Windows environment use, others recommended is the combination of notepad++ and mingw (in fact, I found in the survey on the Internet that some people say that with notepad++ is a rookie Pack master ...) so on the safe side, I decided not to casually tell anyone that I used this.

1, MinGw

(1) Install package

This directly to the official website to download, it provides a directory can let you choose freely. For those of us who do not understand, it also provides a mingw-get-setup for integrated installation management.

The installation path seems to be only in the root directory, so I did not change, with the "C:\MinGW".

After installation, this is what it looks like.

See, it's a Setup manager, and someone who's used Android must know. You can install the required modules directly from "Basic Setup", or in the "All Packages" section, select Install additional documentation for the source class (I guess I didn't do it anyway).

The white box on the front of the module means you don't have the module installed, click it

You only have one choice, install it ~ ~ ~ After the point is displayed like this ~

After selecting all modules that need to be installed, select "Apply Changes"

The pop-up window will display all the package names that need to be installed, uninstalled, updated, select "Apply" and wait to install

Once the installation is complete, you can see that the original white turns green.

(2) Environment configuration

This is to say, "Path" Inside Add "C:\MinGW\bin" can.

2, notepad++

Normal installation Nothing to say, provide green installation package, but green regardless of update, cautious and cautious ~

(1) Install plug-in

Choose the plugin Manager to install the plug-in (it is said that you have to copy and paste it in the past without this stuff ...). Good to use late)

... don't tell me you're not connected, it will update to show all the available plugins, all installed and no money ~ Just remember to install the nppexec on the line.

(2) Create a command

Select "Execute" to save our usual command line

Write "GCC $ (full_current_path)-O $ (current_directory) \$ (Name_part)", Save for "GCC"; write "$ (current_directory) \$ (Name_part) ", Save is" run ". Once saved, you can select it directly from the drop-down menu.

By clicking OK, the following is the execution of the Run command

(3) Set up shortcut keys

Commonly used functions naturally have shortcut keys, first with the plug-in settings to add commands to the menu

Write the menu sole name and the corresponding command in place of the label, click "Add/modify", and it will appear in the list above. Restart is required at the end of this step.

Next Select "Manage Shortcut Keys"

Find the menu we created and click on "Modify" to customize the shortcut. After the end remember to try, if there is no response, you have to do is to change the shortcut keys, this pit 80% people accounted for ...

In fact...... I also tried to install UltraEdit, this article almost became "UltraEdit and MinGW the first HelloWorld". Tangled for a long time, feel no open source of a bit of conscience uneasy ah ~ concrete how to do online also have I want to say something in the installation of some things.

1, about the shortcut key issues

The shortcut keys in UltraEdit are automatically associated to the existing menu "user-defined tools 1234 ..." So you can execute commands with a small icon, and this notepad++ seems to be gone.

2. CreateProcess Error

This unfortunate I recruit, online questions do not say, or people can not understand, and finally saw a speaking English told us to put the documents. C is good, and he does not understand why ....

UltraEdit at the time of saving, if you choose the file Type C language source file, it gives you the suffix is uppercase, this we also do not understand why ... But it's really good to change the case.

notepad++ and MinGW's first HelloWorld

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.