Eclipse CDT MinGW Configuration Record

Source: Internet
Author: User

I downloaded the eclipse C + + IDE for neon.3, the download page is: http://www.eclipse.org/cdt/downloads.php.

1. After running eclipse, open install New software in Help, you can find ".../cdt/release/9.2/r" in the list, then select the project to install, in fact, the contents of the list is not very familiar with the details, so it is all selected.

2. After downloading MinGW installer and running, you can select all items to install, or you can remove the "Mingw32-gcc-ada" and "Mingw32-gcc-fortran" two items.

Add the Bin directory path to the MinGW in the path entry in the system environment configuration after completion.

3. Eclipse opens the Windows->preferences->c/c++->new/C + + Project Wizard, selecting several project toolchains to MINGGW gcc, point " Make Toolchain preferred ".

Under Select Makefile Project, select PE Windows Parse.

---other----------------------------------------------------

1. If there is a third-party development library that needs to be called, you can copy h files or. A files to the code directory, or configure them in the project properties.

(1) Include file configuration: project->properties->c/c++ BUILD->SETTINGS->GCC C + + compiler and GCC C compiler includes, Add an additional include directory.

(2) Lib configuration: project->properties->c/c++ BUILD->SETTINGS->MINGGW C + + linker in the libraries, the lower "-l" to add an additional Lib directory, Above "-L" adds the Lib library name used.

2. If you are a more general-purpose development Library, you do not want to configure the include and LIB directories after each project is established and can be configured in Eclipse's environment configuration.

Open Window->preferences->c/c++->build->environment and add the following variables:

(1) Cplus_include_path: value for the corresponding INCLUDE directory path

(1) C_include_path: value for the corresponding INCLUDE directory path

(1) Library_path: The value is the corresponding. a directory path

---Some errors----------------------------------------------------

1. Prompt for undefined variables [email protected], you need to add MINGW32 libraries in the linker libraries of the project properties, and the order is placed first.

Eclipse CDT MinGW Configuration Record

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.