Use eclipse CDT to write C/C ++ programs

Source: Internet
Author: User

Version and environment:

OS: win7

JDK: 1.6

Mingw: 4.6.2

Step 1: Download The Eclipse IDE for C/C ++ developers version from the eclipse official website. Step 2: Download mingw. It will take about half an hour. After the installation is complete, copy the mingw32-make.exe file in the mingw_home \ bin directory (optional values) and change it to make.exe Step 3: Configure environment variables (important ). Assume that mingw is installed in D: \ mingw. Eg: mingw_home = D: \ mingw LIBRARY_PATH = % mingw_home % \ Lib c_include_path = % mingw_home % \ include cplus_include_path = % mingw_home % \ Lib \ GCC \ mingw32 \ 4.6.2 \ include \ c ++ "; add % mingw_home % \ bin step4 at the end of path: the simplest helloworld. problems encountered in cpp1.build project2.run local C/C ++ project: 1. because I am used to running Java in eclipse, I forgot to build the project. At the beginning, the "launch failed, binary not found" 2 always pops up. solve the binary not found problem, window-> preferences-> C/C ++-> New C DT Project Wizard-> makefile project locate binary parser to cancel elf parser and select PE windows parser.
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.