Eclipse开发环境配置(Java and C/C++)

Eclipse C++配置

Eclipse supports not only Java developing but also many other language including C++. What I’ll introduce is a Eclipse-cpp developing environment building.

1. Download eclipse-cpp-galileo-SR2-win32.zip(click here to dowanload) and extract it. (or eclipse+CDT)

(click here to download eclipse and click here to download CDT

2. Download jdk-6u20-windows-i586.exe (click here to download)and install it. JDK(Java Development Kits) contains JRE(Java Runtime Environment) which supplies a environment for Java application to run.

3. Download MinGW5.1.6.exe (click here to download) and install it. Pay attention on this step, in the selections of choose package page, choose Current, and in the selections of choose components page, choose MinGW base toolsg++ compiler and MinGW Make.

4. Set the environment parameters.

      PATH=%MINGW_PATH%\mingw\lib\gcc\mingw32\3.4.5;%MINGW_PATH%\bin
         MINGW_PATH= D:\project\Android\eclipse-cpp-galileo-SR1-win32\eclipse\mingw
         C_INCLUDE_PATH=%MINGW_PATH%\include;%MINGW_PATH%\lib\gcc\mingw32\3.4.5\include
        CPLUS_INCLUDE_PATH=%MINGW_PATH%\include\c++\3.4.5;%MINGW_PATH%\include\c++\3.4.5\mingw32;%MINGW_PATH%\include\c++\3.4.5\backward;C_INCLUDE_PATH%
         LIBRARY_PATH =%MINGW_PATH%\lib;%MINGW_PATH%\lib\gcc\mingw32\3.4.5

         Notice:rename the file "mingw32-make.exe" in the fold "MinGw/bin" to "make.exe"

5. Building is finished. Now we start programming in Eclipse-cpp.

    First, create a C project.

    Set a project name and type

    Execution result,

    Then create a C++ project in the same way.

posted @ 2010-04-22 15:05  glc400  阅读(329)  评论(0编辑  收藏  举报