Eclipse does not include C++ libraries correctly in Kubuntu

假装没事ソ 提交于 2019-12-12 16:28:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!