Eclipse CDT Development Environment (Windows)

Source: Internet
Author: User

1. Download and install MinGW

1.1 download MinGW

MinGW refers to the compilation environment for generating pure Win32 executable files using only free software. It is a nickname of Minimalist GNU on Windows. The latest version is: mingw-get-inst-20110802.exe

1. http://downloads.sourceforge.net/project/mingw/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110802/mingw-get-inst-20110802.exe official

2. Offline edition (Recommendation): Http://download.csdn.net/download/hemingwang0902/3696832

1.2 install MinGW double-click the exe installation file and follow the Installation Wizard to install it step by step. 1.3 configure MinGW

Copy a copy of C: \ myPros \ MinGW \ bin \ mingw32-make.exeand rename it make.exe, because the default CDT uses make.

 

2. Download and install JDK 2.1 and download JDK

The latest version of JDK (Java SEDevelopment Kit) is jdk 1.7 update 1. Official:

32-bit: http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-windows-i586.exe

64-bit: http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-windows-x64.exe

2.2 install JDK

Follow the "Next" steps in the installation wizard interface to complete JDK installation.

3. Download and install Eclipse + CDT

The latest version of Eclipse is 3.7.1, and the latest version of CDT is 8.0.1. There are two solutions:

Solution 1: Install Eclipse IDE forJava Developers first, and then install the CDT plug-in on Eclipse of this version.

Solution 2 (Recommendation): Directly install Eclipse IDE for C/C ++ Developers

The procedure for these two solutions is described in detail below.

3.1 Eclipse + CDT

Eclipse IDE forJava Developers:

32-bit: http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-win32.zip

64-bit: http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-win32-x86_64.zip

 

CDT:

Offline installation package: http://mirror.bit.edu.cn/eclipse/tools/cdt/releases/indigo/dist/cdt-master-8.0.1.zip

Online installation update address: http://download.eclipse.org/tools/cdt/releases/indigo

 

Decompress the downloaded Eclipse package.

 

The installation of CDT plug-ins is the same as that of other Eclipse plug-ins. There are two installation methods: "offline installation" and "online installation ", detailed steps for installing plug-ins are not described here.

3.2 Eclipse IDE for C/C ++ Developers

Eclipse IDE forC/C ++ Developers (includes Incubating components:

32-bit: http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-cpp-indigo-SR1-incubation-win32.zip

64-bit:

Http: // 59.109.96.24/download/7482719/8187087/1/zip/231/120/1318615738343_120/eclipse-cpp-indigo-SR1-incubation-win32-x86_64.zip

 

After downloading the package, decompress the zip package.

4. Sample program

1. Create a C Project and click "Next"

2. Enter the project name, select the project type, select the compilation tool (MinGW GCC), and click "Next"

 

3. Enter the name and company information (or leave it blank) and click "Finish"

4. Click one of the two buttons circled with a red border in the figure (click one button as needed) to compile the project.

5. Run --> RunAs --> Local C/C ++ Application to Run the program.

 

Console output "! Hello World !!!", The project runs successfully!

 For more detailed construction process, please download from here (PDF): http://download.csdn.net/download/hemingwang0902/3697277

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.