问题
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
来源:https://stackoverflow.com/questions/15585206/eclipse-does-not-include-c-libraries-correctly-in-kubuntu