Configure the C/C ++ development environment in eclipse

Source: Internet
Author: User

 

Cygwin installation method:
1. Download cygwin.

Official website address: http://cygwin.com/

China image: http://www.cygwin.cn/

Download: http://cygwin.com/setup.exe

2. There is a detailed general installation method http://www.cygwin.cn/site/install/ in China Image

The method is actually very simple, he here mainly provides a relatively fast Source: http://www.cygwin.cn/pub/

3. After cygwin is installed, you must set the environment variable. Add the path name of the bin folder in cygwin to path. For example, D: \ cygwin \ bin

4. cygwin is configured. Open CMD and enter a Linux/Unix Command. Change windows to Linux.

In addition to cygwin and minimalist GNU for Windows, this software can achieve the same purpose.

 

Mingw  Download and install : Http://sourceforge.net/projects/mingw/files/

   It cannot be used after installation, because no environment variables have been set. Next we will set the environment variables. The installation path is C: \ mingw Directory.
  Right-click my computer and click Properties. -> Advanced -> Environment variable. Then:
1 In Path Add in C: \ mingw \ bin Remember, if there are other variables in it, add a semicolon. The semicolon must be entered in English input mode.
2 , New LIBRARY_PATH Variable. If any, add it to the value. C: \ mingw \ Lib This is the location of the standard library.
3 , New C_includede_path Variable with the value set C: \ mingw \ include .
4 , NewCplus_include_path Variable, value: C: \ mingw \ include \ c ++ \ 3.4.5; C: \ mingw \ include \ c ++ \ 3.4.5; C: \ mingw \ include \ c ++ \ 3.4.5 \ backward; C: \ mingw \ include

 

Install the C/C ++ plug-in Eclipse:

 

1. Go to eclipse official download match your eclipse CDT package http://download.eclipse.org/tools/cdt/releases/europa/

2. Unpack the package and put the plug-ins in the Eclipse plug-ins, and put the features into the feature of eclipsed.

3. Start eclipse and create a new project. You can see that the C and C ++ project options are added.

 

Online installation method:

1. Start eclipse, select software updates from hlep on the menu bar, and then find and install ......

2. Select search for new features to install and next

3. Check Europa discovery site and finish.

4. Next, it will automatically download the Update site. The update list will be downloaded below. Select the CDT option as the C/C ++ plug-in.

 

Reference: http://www.ibm.com/developerworks/cn/linux/opensource/os-ecc/

 

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.