Make Eclipse CDT 4.4 Luna support c ++ 11 settings, eclipsecdt
Compiling C ++ 11 source code with Eclipse Luna always fails. The mingw gcc used by the compiler must be set in the CDT as follows:
Menu:
Window
->Preferences
->C/C++
->Build
->Settings
->Discovery
->CDT GCC Build-in Compiler Settings
Add
-std=c++11
Right-click Project properties:
Properties
->C/C++ Build
->Settings
->Tool Settings
->GCC C++ Compiler
->Dialect
Add-std=c++11
Toother dialect flags
Or selectISO C++11
For 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
EnableCDT GCC Build-in Compiler Settings
PriorityContributed PathEntry Containers
SelectProject
->C/C++ Index
Re-indexing so that the c ++ 11 code prompts correct.
From
Http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support
How does eclipse cdt automatically complete parameters when declaring functions?
If you declare a newly created function (method), if it is not provided by eclipse (system built-in function, you can press alt +/to complete it), there should be no automatic completion function, if you call this function, it can be automatically completed. Of course, it is also related to the eclipse version,
C development issues in Eclipse. Does CDT support C?
Go to see this, www.ntu.edu. sg/...o.html
Configuration in windows is very troublesome. I have installed a Ubuntu system virtual machine, and the configuration is relatively simple.