본문 바로가기

Eclipse

Guide to Eclipse with C++11 standard


Guide to Eclipse with C++11 standard

http://www.eclipse.org/forums/index.php/mv/msg/282618/787571/


  • Make a new C++ project (currently I have only tested "Empty Project -> Linux GCC". Others can verify on non-Linux platforms)
  • Default options for everything
  • Once created, right-click the project and go to "Properties"
  • C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags. Put "-std=c++0x" at the end
  • C/C++ General -> Paths and Symbols -> Symbols -> GNU C++. Click "Add..." and paste "__GXX_EXPERIMENTAL_CXX0X__" into "Name" and leave "Value" blank.
  • Hit Apply, do whatever it asks you to do, then hit OK.


간단히 설명하면,

프로젝트의 "Properties"를 연다음

C/C++ General -> Paths and Symbols -> Symbols -> GNU C++ 에 "Add" 를 한다음

__GXX_EXPERIMENTAL_CXX0X__ 의 심볼을 추가해 주면 된다.



'Eclipse' 카테고리의 다른 글

Eclipse CDT 설치하기 (Linux, Ubuntu)  (0) 2013.08.03