0

I have a problem with Eclipse C/C++ Code Analysis and CDT.

I have some C++11 code so I had to add support for this to my Eclipse environment. I read several threads about this and found the following answer:

Add the -std=c++11 flag to Windows -> Preferences -> C/C++ -> Build -> Settings -> Disovery -> CDT GCC Built-in Compiler

After doing this the C++11 functions are now resolved. However alot of new errors has been introduced. These errors only occurs in the *.cpp files. I get errors like "Member declaration not found" etc. The interesting this is that if I keep all the class method implementations in the header files I don't get any Eclipse code errors. Also I should add the code compiles if I build the project but Eclipse highlight code errors, so this does only seem to be related to CDT.

NOTE: I have tried several releases of Eclipse, all showing same problem.

I have not been able to find any answer for this problem so please help me.

Euklides
  • 564
  • 1
  • 10
  • 35
  • Please always show the exact error messages. Also "the code builds fine", where and how if there are errors? Do you mean Eclipse shows errors, but when compiling everything is fine? – Sami Kuhmonen May 17 '16 at 13:23
  • Yes, by building I mean that it builds the project from Eclipse. It compiles and links sucessfully. – Euklides May 17 '16 at 13:26
  • Possible duplicate of [Eclipse CDT C++11/C++0x support](http://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support) – Garf365 May 17 '16 at 14:07
  • Have you added the include path to the project's "PATHs and Symbols" for this project? I added /path_to_std_includes/dev/foo/include manually because the location varies from linux dist do dist. – Fookiee May 18 '16 at 10:37

0 Answers0