Eclipse + CDT + mingw environment configuration in Windows

Source: Internet
Author: User

Time: 2011.1.3

Since many software versions on the Internet are outdated, there may be more or less write problems. The summary is as follows. All the software installed by myself is the latest version by the end of 2010. The details are as follows:

OS:

Windows 7
(But SP1 seems to have come out)

Eclipse:

Eclipse-java-helios-SR1-win32 (default address download)

CDT:

Cdt-master-7.0.0-I201006141710

Http://www.eclipse.org/downloads/download.php? File =/tools/CDT/releases/Helios/Dist/cdt-master-7.0.0-I201006141710.zip

Compiler:

Mingw
Gcc4.5.0

Mingw
(If you do not want to find it by yourself, refer to the next one)

Http://www.mingw.org/wiki/Getting_Started

Download the mingw graphical interface Installation tool:

Http://sourceforge.net/projects/mingw/files/

 

Step 1: Decompress eclipse to the specified directory.

Step 2:Download and install the mingw Compiler

Mingw
Provided on the official website (not easy to find, too troublesome to refer to the next step: Download the graphical interface Installation Tool)

Http://www.mingw.org/wiki/Getting_Started

 

Download the mingw graphical interface Installation tool:

Http://sourceforge.net/projects/mingw/files/

 

Click the downloaded exe
Start Installation
Default path: C:/wingw
(I changed to D:/program files/mingw)

Select the component to be installed. I only selected C compiler and C ++ three times before.
Compiler's results are all tragic!

The final conclusion is to select at least C ++ compiler, C compiler, msys basic system, mingw developer Toolkit

 

After installation is complete

Configure environment variables (classpath does not seem to need to be configured, and I will not configure it)

Path
D:/program files/mingw/bin (my installation directory, for reference only)

Change the make file name.
Mingw32-make.exe changed to: make.exe

After completion, enter GCC -- version in the command line.
And
Make to test whether the configuration is successful

(It is said that the new version of mingw GCC does not contain a debugger. You need to download DBD by yourself, but eclipse seems to have it)

 

Step 3: Download and install the Eclipse plug-in CDT

Method 1: manually download the CDT address:

Download list: (sometimes it seems that it cannot be opened)

Http://download.eclipse.org/tools/cdt/releases/helios/

The real download page is here:

Http://www.eclipse.org/downloads/download.php? File =/tools/CDT/releases/Helios/Dist/cdt-master-7.0.0-I201006141710.zip

After the download is complete, open Eclipse: Help-> install new software-> work

Click the Add proxy dialog box: Add Repository

Click archive...
Select the compressed package you downloaded

Select the plug-in to be installed, and next

 

 

 

Method 2: Eclipse automatically finds and installs:
(Networking required)

Open Eclipse: Help-> install
New software-> work with, enter the following address (my version is Helios)

Http://download.eclipse.org/tools/cdt/releases/helios

Eclipse will automatically find the plug-in, select the plug-in to be installed, all the way to next...

At last, eclipse needs to be restarted and can be used after restart!

OK!
Configuration completed...

Write more concise, here provides a 05 year write than my detailed address http://www.newsmth.net/pc/pccon.php? Id = 6027 & nid = 157931
This is a mess!

I configured it successfully. If you have any questions, please feel free to contact me!

 

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.