Eclipse Neon Configuring the C + + development environment

Source: Internet
Author: User

VS2015 is too large, 256G hard disk saved a lot of files, free space to install. The recent use of Python and Java is higher than C, the main use of eclipse,eclipse can be done through the plug-c + + program development. The CDT is a project in Eclipse, with the MinGW compiler (minimalist GNU for Windows), running gcc/g++, compiling the debugger.


It seems like there will be a lot of pits, so download the ready-made eclipse for C + +. Eclipse for C + + download


The system has a JDK (8u73) installed and Eclipse is running based on the Java environment, so the JDK is required.

Required Software 1. MINGGW compiler

MinGW official website
-Provides GCC interface, can compile and debug C, C + +, Fortran and other language code
-MinGW contains Msys, a separate shell environment, fork from the Cygwin project
MinGW website provides an installation tool, very simple and practical, the installation process is simple and clear. Installation can be fully installed or optionally installed
650) this.width=650; "alt=" mingw-setup-tools example "src=" Http://i.imgur.com/ZzRmBCK.jpg "/>

Only gcc-g++ components are selected here and then installation.
Since MinGW is to be called by the CDT, the System environment variable (PATH) needs to be configured to add the directory where MinGW resides (X:\MinGW\bin)
The system variable configuration under WIN10 is very clear and can be located by browsing. Environment variables can be added under Linux through the Export command.
650) this.width=650; "alt=" Windows environment variable Configuration "src=" Http://i.imgur.com/nHH3uLE.jpg "/>

2. CDT for Eclipse

CDT official website
Provides plug-ins for compiling C programs in an Eclipse environment.

How to avoid the pit
    1. It is cumbersome to configure many environment variables by manually downloading the CDT plugin and then copying it into the Eclipse directory.

    2. Install via the plugin download link provided by the project
      Corresponding Eclipse version plug-in package
      Copy the download link by Help-install New software ..., add plugin, wait. 650) this.width=650; "src=" http://i.imgur.com/QKFxMsN.jpg "/>
      Customize the selection of the installation, and then it's a long wait. After installation, the cumbersome environment variables are automatically configured . 650) this.width=650; auto-configured environment variable "src=" Http://i.imgur.com/cG9aeyO.jpg "/>" in "alt=" Project options

If it's already in the pit

<1> new Library_path variable with value set to X:\MinGW\lib

<2> new C _includede _path variable with value set to X:\MinGW\include

<3> new Cplus _include _path variable with value set to

X:\MinGW\lib\gcc\mingw32\4.9.3\include;
X:\MinGW\lib\gcc\mingw32\4.9.3\include-fixed;
x:\mingw\lib\gcc\mingw32\4.9.3\include\c++;
X:\mingw\lib\gcc\mingw32\4.9.3\include\c++\backward;
X:\mingw\lib\gcc\mingw32\4.9.3\include\c++\mingw32

The value is separated from the value with a semicolon, 4.9.3 is the version number

Test using

New C Project,hello World ANSI C,mingw GCC
650) this.width=650; "alt=" click Pinion configuration Option "src=" Http://i.imgur.com/GRDs25s.jpg "/>
Click Pinion configuration Options
650) this.width=650; "src=" http://i.imgur.com/f39gpMw.jpg "/>
You can then debug or run to see the effect.


2016/6/28 13:24:38
Web development or MyEclipse bar, convenient. But eclipse is better than I thought, convenient, simple, fast!

This article is from the "Tribute to Time" blog, please be sure to keep this source http://bl5bl4d3.blog.51cto.com/9569806/1793588

Eclipse Neon Configuring the C + + development environment

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.