Eclipse does not include C++ libraries correctly i

2019-07-14 17:50发布

问题:

I'm having a problem with C++11 libraries. I'm using Eclipse in Kubuntu with latest gcc and g++ compilers. I'm using C++ 4.7.2 library.

Eclipse finds all the libraries just fine, but still there are problems. For example:

#include <random>
typedef std::mt19937 myRandom;

This code results an error: "Type 'std::mt19937' could not be resolved". It seems that not all functionality in random was not included. Same problem exists for cout and cin in iostream. What could be wrong?

-Juho L