Preparation of C language development environment under "C language"WINDOWS+ECLIPSECDT

Source: Internet
Author: User

Previously wrote a "c language" a variety of ways to build a C language development environment on the Windows platform, and discussed how to use dev C + +, ECLIPSECDT, VisualStudio, Sublime Test, clion, etc. under Windows, ide/ The editor constructs the C language development environment, but also is only donuts introduction, to each development environment choice does not have the detailed step and the process;

This time with the C language final course design document, the time to develop C language with Eclipse is described in a step-by-page demonstration of how to use eclipse from installation to output your first C language, Hello World;

Welcome to explore, welcome to mutual powder;

Directory:

First, eclipse official download and unzip

Second, Java Development environment Package (JDK) Official download

Third, the Java environment test

Iv. Opening Eclipse New project

V. MINGW build GCC compilation environment

VI. Testing the GCC environment

Seven, Hello world!

Behind the scenes, (pull to the last self-view =, =)

First, eclipse official download and unzip

Eclipse was developed by Java, where the original product user was positioned on a Java engineer, but the authorities were not satisfied with it, and to do a free and definable IDE that could expand into a wide variety of development environments, so there was the story of writing PHP and writing C in Eclipse;

Under the official Eclipse download URL, click the Eclipse IDE for C + + developers that is referred to as the arrow, specifically download 32bit or 64bit according to your operating system processor configuration selection (32bit computer can only install 32bit, 64bit computers are available). See how your computer processor is configured: Right-click My Computer--Properties--View basic information about computers-system-"system type;

After the download is a compressed file, unzip and put in the directory to store the software, double hit Kaixie under the directory Eclipse.exe (recommended 32bit put to C:\Program files (x86), and 64bit placed under C:\Program files, Personally think that the C-disk to stay big software is really good, no imagination of the more cards, reinstall the system only with the format of C-disk is a new environment, software slowly re-download);

If you are following this blog directly, double-clicking the Eclipse.exe will appear:

Since eclipse itself is developed by Java and, as it is said, a Java Runtime Environment (JRE) or Java Development Environment Package (JDK) must already exist on the computer to run eclipse, it is necessary to install the JRE or JDK before------------------------this represents success in the second

Second, Java Development environment Package (JDK) Official download

When the official JDK download URL opens, click the arrow to download it;

After clicking on the page to jump to select the "Accept License Agreement" (in accordance with the product license) after selecting the arrow refers to the two windwows 32bit or 64bit one of them, the above mentioned 32bit, 63bit applicable principle is also applicable here ;

After downloading, install the JDK, the installation process by default the next step;

Third, the Java environment test

Open a command prompt under Windows (shortcut key windows+f Open Run window input cmd) as shown in;

Enter. At the command prompt terminal input java-version and enter, if the "JAVA is not internal or external command, is not a program to run" and other words, prove that the installation failed, install more than a few times =, =;

Input Java-version If the Java version information is listed, it proves that the Java environment has been successfully built (mosaic =, =);

Iv. Opening Eclipse New project

Java Environment Validation is successful (you can actually skip the third step, if the installation succeeds, eclipse will open correctly), open Eclipse and come to Eclipse world

Pop-up the following window to select the workspace (the workspace is placed on another disk), for convenience, check the word "Use this ...", and no longer ask the workspace when it is opened (you can set the re-select workspace after entering):

Select the work area, come to the main interface, click the arrow pointing to the upper left corner of the new C project;

Since the default is no MinGW (Windows can compile the C-language environment, provide GCC support) to choose from, it seems there is a step-install mingw;

V. MINGW build GCC compilation environment

As the opening point says, before the "c language" in the Windows platform to build a C-language development environment in a variety of ways to focus on the windows under the GCC environment of the building, here again for graphic finishing;

Come to MinGW official website, click the arrow refers to the download interface to download;

Downloaded is only less than 100kb size online boot installer, must be networked to install MinGW.

In the case of a network connection, double-click on the installer and click Next to enter the installation management interface as shown.

Since we only need to compile the C language environment here, the first step right-click on the arrow refers to the four (if not directly appear here, please make sure to click on the left menu bar of basic Setup, or according to the name in the left menu bar all packages search, as shown in). Tick installation->apply changes according to click after completion;

Menu: The installation time is longer, do more than half an hour of preparation =, =;

VI. Testing the GCC environment

Again to the mosaic moment =, =. This step can be skipped as well as the third step.

In the third step has been introduced in the command prompt input gcc, if there is gcc:fatal error, such as the words, prove that GCC has been installed, but not to gcc corresponding parameters, grammatical errors;

If you are reminded that GCC is not an internal or external command, =, =;

Seven, Hello world!

Finally, after unpacking eclipse, configuring the JDK environment, and configuring the GCC environment, it's time to get to Hello World's excitement (self-abuse ing. );

In accordance with the fourth step to create a new C project, at this time there are mingw to choose from, choose a can be resistant to the project name bar and click the arrow refers to the operation (run) it;

And so on, lanunch failed =, = (and this is just my running problem, I do not know you can also encounter what problem =, =), this paragraph input to Baidu looks like a variety of tall on the look, did not read;

But in one unintentional, click on the shown build all, run again, successful output (@ ̄ー ̄@);

As for the principle, need to go into their own;

Run successfully like, the result is printed in the console;

Behind the scenes, the early morning to write C language blog results, this article at the end of each paragraph is a semicolon =, =;

Preparation of C language development environment under "C language"WINDOWS+ECLIPSECDT

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.