Use Eclipse to play C, C ++, and eclipse

Source: Internet
Author: User

Use Eclipse to play C, C ++, and eclipse

Because of Java Development, I am used to using Eclipse. Now I need to write C ++ programs. I really don't want to use a heavyweight IDE like VS. VC ++ 6.0 is so unfriendly. Use a familiar IDE to work well. To develop C ++ and C Programs on Eclipse, you need to make the following preparations:

 

1. Install the CDT plug-in on Eclipse

 

Open [Help] and [Eclipse Marketplace] in sequence]

Search for CDT under search:

 

 

Then install.

 

 

 

2. Install minGw

 

Http://www.mingw.org/

 

Download and install the tool. After the tool is downloaded, you can select the class library you need.

 

 

 

 

3. Create a project

When creating a project, you can see that Eclipse can automatically find the corresponding compiler mingw.

 

Same as using VC ++ 6.0, You need to compile before execution. Right-click the project name and choose build project to compile the project.

 

 

 

If debugging is required:

 

 

 

 

The following is the test code I wrote:

 

 

It seems that Eclipse is still so sharp.

 

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.