Skip to content

Eclipse:CDT

Eclipse CDT (C/C++ Development Tooling)

The CDT Project provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform. Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewers.

플러그인 설치방법

CDT 플러그인은 이클립스를 설치한 후 아래의 과정으로 설치할 수 있다. <span style='color:red;'>(아래의 방법은 취소되었다)

  1. Menu > Help > Install New Software...
  2. Work with > Indigo - http://download.eclipse.org/releases/indigo 선택
  3. Programming Language > C/C++ Development Tools 선택
  4. Programming Language > C/C++ Development Tools SDK 선택
  5. Programming Language > C/C++ Library API Documentation Hover Help (Incubation) 선택

아래와 같은 방법으로 최신CDT를 설치할 수 있다.

  1. CDT 홈페이지에 접속하여, Eclipse 버전에 해당하는 CDT의 Repository URL을 복사한다.
  2. Menu > Help > Install New Software...
  3. 복사한 CDT Repo URL을 적용하여 업데이트한다.

참고로 Kepler는 아래와 같이 적용할 수 있다. (2013-08-15 갱신)

MinGW MakeFile 프로젝트 설정방법

MinGW는 make.exemingw32-make.exe로 되어있다. Makefile project를 위하여 Builder setting을 아래와 같이 변경해야 한다.

  1. Menu > Window > Preferences > C/C++ > New CDT Project Wizard > Makefile project > Builder setting
  2. Use default build command를 체크 해제.
  3. Build commandmakemingw32-make.exe로 변경한다. (${~MINGW_ROOT}/bin/mingw32-make.exe와 같은 방식으로 변경해도 좋다.)

CDT C++11 Setting

CDT의 C++11적용 방법에 대하여 설명한다. Eclipse CDT 4.4 Luna에서 Syntax parser를 아래와 같이 적용한다.

Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build-in Compiler Settings

하단의 Language Settings Provider Options그룹에서 Command to get compiler specs EditBox에 -std=c++11를 추가해 준다.

See also

Favorite site

References


  1. Cdt_mingw_setting.pdf