|Re: Specifying the c++11 standard in Eclipse Luna [message #1770608 is a reply to message #1770483]
||Mon, 14 August 2017 23:44
Registered: October 2012
Luna is three releases old.
The current is Oxygen with the latest CDT.
Many CDT issues have been fixed.
You should consider using it or at least upgrading to the latest CDT.
The error is saying that chrono.h can't be found.
Does it exist?
It also says it was included at line 10 but that doesn't match the code you provided.
I wonder why it is looking for chrono.h as the GNU file is /usr/include/c++/<gcc version>/chrono
The text of the line with the error is #include <chrone.h> which doesn't match your code.
Typically, g++ flags dialect problems with (using <random> as a C++11 example):
In file included from /usr/include/c++/6.3.1/random:35:0,
/usr/include/c++/6.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
../src/Hello.cpp:35:6: error: 'mt19937' in namespace 'std' does not name a type
I don't see an indexer problem but if you are using the cross compiler you should use the cross compiler builtin provider settings.
You seem to have made the proper changes but be sure you are using the intended toolchain.
The make file may not have been rebuilt after changing the dialect.
Try cleaning the project then rebuilding.
If you must, delete the the configuration directories (typically, Release and Debug) then rebuild.
[Updated on: Tue, 15 August 2017 00:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01878 seconds