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;'>(아래의 방법은 취소되었다)
-
Menu > Help > Install New Software... -
Work with > Indigo - http://download.eclipse.org/releases/indigo 선택 -
Programming Language > C/C++ Development Tools 선택 -
Programming Language > C/C++ Development Tools SDK 선택 -
Programming Language > C/C++ Library API Documentation Hover Help (Incubation) 선택
아래와 같은 방법으로 최신CDT를 설치할 수 있다.
- CDT 홈페이지에 접속하여, Eclipse 버전에 해당하는 CDT의 Repository URL을 복사한다.
-
Menu > Help > Install New Software...
- 복사한 CDT Repo URL을 적용하여 업데이트한다.
참고로 Kepler는 아래와 같이 적용할 수 있다. (2013-08-15 갱신)
- CDT 8.2.0 for Eclipse Kepler
- Eclipse package: Eclipse C/C++ IDE for Kepler.
- p2 software repository: http://download.eclipse.org/tools/cdt/releases/kepler.
MinGW MakeFile 프로젝트 설정방법
MinGW는 make.exe
가 mingw32-make.exe
로 되어있다. Makefile project를 위하여 Builder setting을 아래와 같이 변경해야 한다.
-
Menu > Window > Preferences > C/C++ > New CDT Project Wizard > Makefile project > Builder setting
-
Use default build command
를 체크 해제. -
Build command
의make
를mingw32-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
-
Cdt_mingw_setting.pdf ↩