본문 바로가기

프로그램언어/Summary

[eclipse3.4 ] C / C++ Development

eclipse을 이용해서 C / C++ 개발할 수 있습니다. eclipse에서  C/C++ Development Toolkit (CDT)라는
이용하여 컴파일을 할 수 있습니다.

먼저 eclipse-SDK을 바이너리를 받아서 설치를 해놓으셨다면은 다음과 같이 한번 같이 설정을 해볼까 합니다.
eclipse3.4에서 C / C++을 개발하기 위해서는 컴파일러가 필요로 합니다. eclipse는 open source인
g++ 컴파일러를 이용해서 컴파일을 할 수 있는데요. 리눅스에서만 쓰이는 것이 아니라 에뮬레이터를 이용해서
윈도우에서도 사용이 가능합니다.

Cygwin 에서 다운로드를 받아 놓고 설치합니다. Cygwin은 윈도우에서 리눅스 에뮬레이터를 사용하기
위해 설치하는 것입니다.

Cygwin is a port of the Linux environment to Windows. It provides a compatibility layer in a set of DLLs. These DLLs are GPL licensed, making any code that links to them also subject to the GPL. Cygwin, however, does provide the fullest implementation of the GNU toolchain by supporting the GNU libc C runtime library.


  • MinGW is a port of the GNU toolchain to the Windows platform. The biggest difference over Cygwin is that MinGW uses the Windows C runtime libraries (mscvrt) instead of GNU's libc. As a result, a compatibility layer is not required, thus avoiding the GPL issues with Cygwin. There are differences, though, between the Windows and GNU C runtime libraries that will make writing portable applications more difficult.


    However, MinGW provides the best integration support with the CDT due to it's direct support for the Windows environment.


    The following are instructions and links on how to install the current version of MinGW. Note that these links may become inaccurate over time as new versions of MinGW components are introduced. Please check the MinGW File Release section for the latest versions.


    1. Download and run the MinGW setup program, MinGW-5.1.3.exe.
    2. Select download and install the MinGW base tools and the g++ compiler. You may select the Current or Candidate version of these tools. You may also install any of the other available compilers as well.

      Do not install the MinGW Make feature as the MSYS version of make from step 5 is a more complete implementation of make.

    3. The MinGW setup program currently does not install the gdb debugger. To install the debugger, download the file from the following location: gdb-6.6.tar.bz2
    4. Extract the contents of the file gdb-6.6.tar.bz2 to the same location where you installed MinGW.
    5. If you want to use Makefile projects, download and run the setup program from the following location: MSYS-1.0.10.exe. MSYS provides an implementation of make and related command line tools. This is not required for other types of projects with the MinGW toolchain, which use CDT's internal build tools to perform the build.


 

Other Platforms

The GNU toolchain is supported on all platforms that the CDT supports. For instructions about installing the GNU toolchain on your platform, see your platform vendor.

기본적으로 C / C++ 개발하기 위해 최소한의 설정입니다. 이제 eclipse을 update을 통해 플러그를 받습니다.
help->software updates->Available software C/C++ CDT 체크한 후, 인스톨을 통해서 업데이트를 하면 된다.



'프로그램언어 > Summary' 카테고리의 다른 글

log4cxx을 이용한 사용기  (0) 2008.08.19
Fonts 소개  (0) 2008.08.11
Building Apache log4cxx  (0) 2008.08.04
Short introduction to Apache log4cxx  (0) 2008.08.03
log4cxx 0.10.0  (0) 2008.08.03