Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problems with Oxygen and C++11
Problems with Oxygen and C++11 [message #1770802] Thu, 17 August 2017 08:19
Ewan Towie is currently offline Ewan TowieFriend
Messages: 1
Registered: August 2017
Junior Member

I have been trying everything I can think of to get my existing project to correctly parse the code with C++11 support. It continues to tell me that 'std::vector<int> myVec' has Invalid template arguments. Annoyingly, if I open the declaration for vector it open the correct STL vector header from gcc 5.2.0 (inside the header there are #ifdefs for __cplusplus which are correctly defined inside Eclipse as 201103L).

If I start a new C++ project from fresh and try some dummy code Eclipse correctly indexes the code and is happy with the vector definition above!

I have followed the many guides to try and get C++11 indexing to work:
- Setting C++ Compiler Dialect to C++11
- Specifying the non-default path I have to gcc 5.2.0 includes
- Adding '-std=c++11' to CDT GCC Built In Compiler Settings
- Removing ~/.eclipse/* and restarting
- Rebuilding the project index

I really can't understand at this point why it won't correctly parse the code. The code correctly compiles on the command-line (I can't build inside Eclipse as I use a Boost jam build system and I don't know how to configure this inside Eclipse). The code does have a mix of C and C++, but I don't see how this would cause a problem.

Any help or suggestions would be appreciated at this point!

Thanks, Ewan
Previous Topic:printf() is not appearing.
Next Topic:CDT Remote Debugging/Launching
Goto Forum:

Current Time: Wed Oct 17 19:21:57 GMT 2018

Powered by FUDForum. Page generated in 0.01932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top