How do I configure the CDT environment under Eclipse in Windows?

xiaoxiao2021-03-06  60

Building a C development environment under Windows with Eclipse CDT and Cygwin

1. Download Cygwin's online installer (http://www.cygwin.com/setup.exe), select GCC, G , Make during installation.

2. Download Eclipse IDE for C / C Developers (http://www.eclipse.org/downloads/).

3. Set the environment variable, path =% PATH%;% cygwin_path% / bin, library_path =% cygwin_path% / lib, c_include_path =% cygwin_path% / usr / include then restart the machine.

4. Open Eclipse, in Preferences-> C / C -> New CDT Project Wizard-> Makefile Project, the Binary Parser is selected Cygwin PE PARSER.

Come.

More funny is the third step, the ambient variable is generally set to be restarted. But I didn't restart, I have always had "Error Launching External Scanner Info Generator" when compiled. Under Google, I found a predecessor to encounter the same problem.

The following is the latest link

Eclipse CDT environment built (

Http://lavasoft.blog.51cto.com/62575/196028

)

The standard C environment is not so easy, and the large-scale developers have chosen VS, but it is not very suitable for other operating system encoders, and then VS is non-100%. And cumbersome.

Here is how to build standard C, C development environments using Eclipse CDT.

First, prepare software

The Eclipse kernel is the latest version 3.5.

Http://d2u376ub0heus3.cloudfront.net/technology/epp/downloads/release/galileo/r/eclipse-cpp-galileo-win32.zip

Http://nchc.dl.sourceforge.net/project/mingw/automated MingW Installer/mingw 5.1.4/mingw-5.1.4.exe

Second, install MINGW, the preferred standard C environment under Windows.

Install minigw, some other toolkits are downloaded during the installation process, download it all.

The additional package downloaded is as follows, staying in the back:

MINGW32-MAKE-3.81-20080326-2.tar.gz

MINGWRT-3.15.2-mingw32-dev.tar.gz

W32API-3.13-mingw32-dev.tar.gz

GCC-Objc-3.4.5-20060117-3.tar.gz

GCC-G77-3.4.5-20060117-3.tar.gz

GCC-CORE-3.4.5-20060117-3.tar.gz

GCC-G - 3.4.5-20060117-3.tar.gz

Binutils-2.19.1-mingw32-bin.tar.gz

GCC-ADA-3.4.5-20060117-3.tar.gz

GCC-Java-3.4.5-20060117-3.tar.gz

It is assumed to install it under C: / MingW, and Eclipse is decompressed into the D disc.

Configure C environment variables:

CPLUS_INCLUDE_PATH = C: / MingW / Include / C / 3.4.5; C: / MingW / Include / C / 3.4.5 / MingW32 / Bits; C: / MingW / Include / C / 3.4.5 / Backward; C: / MINGW / INCLUDEC_INCLUDE_PATH = C: / MingW / Include

Library_path = c: / mingw / lib

And add a C: / MingW / Bin; C: /MINGW/Libexec/gcc/mingw32/3.4.5 to add PATH variables.

Third, configure Eclipse

Open Eclipse, enter Windows> Preferences> New CDT Project Wizard> Makefile Project

Binary Parsers only select Windows Pe Parser.

Fourth, create a new CPP project Hello

转载请注明原文地址:https://www.9cbs.com/read-113728.html

New Post(0)