I get these two errors, when trying to initialize a vector with
std::vector im = {i,j,k};
Errors:
could not convert ‘{i, j, k}’ from ‘’ to ‘std::vector’
C++98 ‘im’ must be initialized by constructor, not by ‘{...}’
I think the problem is, that Eclipse is not using the C++11 libraries. I have tried to get Eclipse to use them as suggested on here (Eclipse CDT C++11/C++0x support), but it still does not work.
I am running Ubuntu 15.10 with the g++ version 5.2.1 20151010.
Thanks :)!
EDIT: I am just a bit clumsy, added the flag in the wrong tab... Working now!