Eclipse builds C ++ platform from Netease Institute)

Source: Internet
Author: User
Software preparation 1. Eclipse 3.06 official site: http://www.eclipse.org eclipse tools: http://www.eclipse.org/downloads/index.php 2.c/ C ++ Development Toolkit: http://update.eclipse.org/tools/cdt/releases/new/ attention, here we choose cdt-2.1.0-win32.x86 3. mingw 3.1: http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe? Download System Environment Win2000/WINXP/win2003 environment configuration after we download all the required tools, install mingw first, and then configure the system environment variables. Click Properties of my computer> advanced> environment variables> system variables> Add the mingw installation path/mingw/bin after path, as shown in. Next, find the directory where you installed mingw and change the name of mingw/bin/mingw32-make.exeto make.exe. Next, install eclipse. After the installation is complete, do not rush to run eclipse. Put the downloaded C/C ++ Development Toolkit's decompressed features and plugins directories under the eclipse installation directory. At this point, the platform configuration is basically complete. Next we run eclipse. The system will prompt you to set the working directory to workspace, which is the place of the project file. Here we select the default recognition, the eclipse environment interface after running is shown in. Next we will create a project and select file ---> New ---> project... in the pop-up dialog box, select standard make C ++ progject, as shown in. Select next and enter the project file name. Here we enter test to complete the project settings. Next, expand the test project directory in the left-side navigator dialog box, right-click the mouse in the blank space, and choose new --> file, as shown in. Next, enter the new C ++ file name in the pop-up dialog box. Here we enter hello. cpp. Next, enter the C ++ source code in the edit dialog box. The Code is as follows: C ++ Code # I nclude Using namespace STD; int main () {cout <"Hello eclipse! /N "; System (" pause ");} in order to enable the eclipse environment to quickly compile the source file, we also need to set the compile control (make targets ). Choose WINDOW> show View> make targets on the navigation bar of eclipse and select the test project name in the make targets dialog box on the right. Select Add make targets on the right keyboard of mouse, in the displayed dialog box, enter target name: Make file builder command: G ++ hello. CPP-g-o run. If it is a C environment, change it to GCC hello. after C-g-o run is complete, click Create. As shown in: Click make file branch in The make targets dialog box to compile the source file. After the compilation is complete, run appears in the navigator dialog box. EXE, which is the executable file after compilation. You can double-click it to run it, as shown in. By now, the eclipse + mingw Standard C/C ++ environment has been fully configured and tested. If you have any questions, visit the www.cndev-lab.com and ask questions in the discussion board. I will answer them. At this point, the 30-day ultimate tutorials of Guan Ning are all connected. I sincerely hope this tutorial will help beginners. If you think this series of tutorials is good, please recommend it to your friends. Next, Netease will upload the original series of Java tutorials from Guan Ning exclusively.
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.