|Problems with Oxygen and C++11 [message #1770802]
||Thu, 17 August 2017 08:19
| Ewan Towie
Registered: August 2017
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!
Powered by FUDForum
. Page generated in 0.02692 seconds