Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++0x IDE support with g++

Tags:

c++

gcc

c++11

g++

What IDE has a better support for the new C++0x features in g++?

I know you can use the editor as is and compile the code using -std=c++0x, but I would want the new features do not be marked as errors by the IDE (auto, range-based loop, variadic templates, etc.).

like image 478
ebasconp Avatar asked Jun 29 '11 19:06

ebasconp


People also ask

Can you use g ++ to compile C?

gcc is used to compile C program. g++ can compile any . c or . cpp files but they will be treated as C++ files only.

Does G ++ support C++11?

The g++ utility supports almost all mainstream C++ standards, including c++98 , c++03 , c++11 , c++14 , c++17 , and experimentally c++20 and c++23 . It also provides some GNU extensions to the standard to enable more useful features.

Which C++ does g ++ use?

g++ command is a GNU c++ compiler invocation command, which is used for preprocessing, compilation, assembly and linking of source code to generate an executable file.

What is STD C ++ 0x?

C++0x was the working name for the new standard for C++, adding many language features that I'll cover in this series on C++11. In September 2011, C++0x was officially published as the new C++11 standard, and many compilers now provide support for some of the core C++11 features.


1 Answers

Here is the Eclipse CDT bug tracking support for the c++0x features added in g++ 4.6.

So far CDT supports the features in g++ 4.5 (that includes type inference with auto, decltype and trailing return types, variadic templates, lambdas, rvalue refs) plus range-based for and forward declaration of enums. The parser tweaks were done a while ago, and judging by the milestones, the latest Eclipse release (Indigo) includes them.

like image 165
Tobu Avatar answered Oct 27 '22 00:10

Tobu