C compilation and Development in Windows eclipse

Source: Internet
Author: User

Sometimes it is inevitable that C compiler will be used when debugging and writing some common programs. However, Vs in Windows is too large and it is hard to run with 2 GB memory, not to mention the slowness of installation.

Install eclipse first. In fact, to install eclipse in Windows, you also need to install Java virtual machine first, but you do not need to set environment variables, download the Java Virtual Machine installation and overwrite the jar folder in the installation directory to the eclipse installation directory.

The download of eclipse and the download of Java virtual machine are in my other blog posts, which are not described here. Baidu is also very easy to find.

1. Install the compiler, Dev-C ++

: Http://download.csdn.net/detail/cp1300/4857245

The installation is complete.

2. Open eclipse

 

3. Set eclipse

Window ---> preferences ---> C/C ++ ----> build -----> Environment

The path to be added must be found in Dev-C ++.

Open Dev-C ++ ---> Tools -----> compilation options -----> directory

Add variables to view your actual path

Pata g: \ Program Files \ DEV-CPP \ bin

Library

LIBRARY_PATH G: \ ProgramFiles \ DEV-CPP \ Lib

Related header file path

Cplus_include_path G: \ ProgramFiles \ DEV-CPP \ include; G: \ ProgramFiles \ DEV-CPP \ Lib \ GCC \ mingw32 \ 3.4.2 \ include; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2 \ backward; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2 \ mingw32; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2; G: \ ProgramFiles \ DEV-CPP \ include

Set tool chains

Apply configuration, re-close and re-open eclipse

4. Create a project

Next step

Click Finish ..

Other operations are the same as those in Ubuntu.

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.