Enable Eclipse CDT 4.4 Luna to support settings for C + + 11

Source: Internet
Author: User

Compiling the C + + 11 source with Eclipse Luna is always an error, and the compiler MinGW GCC, which needs to be set in the CDT as follows:

Menu:

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

添加-std=c++11

Right-click Project properties:

Properties-C/C++ Build-Settings-Tool Settings-GCC C++ Compiler-Dialect

Add to-std=c++11Toother dialect flagsor select a listISO C++11

If this is a CMake project:

CMake-G"Eclipse Cdt4-unix makefiles" -D Cmake_build_type=Debug ..

Right-click Project properties:

Properties-C/C++ General-Preprocessor Include Paths, Marcos etc.-Providers

cdt GCC build-in Compiler Settings   Priority  contributed pathentry Containers  

menu inside select  project  ->c/c++ index   Rebuild index makes C + + 11 code prompt correctly.


From

Http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support

Enable Eclipse CDT 4.4 Luna to support settings for C + + 11

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.