Build an eclipse C/C ++ Development Environment

Source: Internet
Author: User

This article is from [http://www.cnblogs.com/feisky/archive/2010/03/21/1691170.html]

 

1. Install eclipse

Download JRE installation from http://java.sun.com/j2se/1.5.0/download.jsp;

Download eclipse installation from http://eclipse.org. (You can download the Java version or C/C ++ version)

2. Install CDT for the downloaded Java version or only Eclipse IDE.

Install CDT in eclipse menu help, web site is http://download.eclipse.org/tools/cdt/releases/galileo

3 install mingw

So far, CDT has been installed for Eclipse, but a "CompilationProgram"To compile the program, so you need to download the gnu c, C ++ compilation program that can be used on Windows. here you need to download: mingw.
Download URL: http://www.mingw.org/download.shtml

After installation, add the bin of minwgw to the system variable and change mingw32-make.exeto make.exe.

4. Install GDB

The http://www.gnu.org/software/gdb/download downloads GDB and installs It To The mingw installation directory.

5. Set eclipse

To enable CDT to use mingw for compilation, we should go back to eclipse to set it:
Window-> preferences-> C/C ++-> New CDT Project Wizard-> makefile Project
Locate binary parser, cancel elf parser, and select PE windows parser.

In this way, the development environment is ready.

 

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.