Linux CLion无法解析名称空间成员 [英] Linux CLion can't resolve namespace member
本文介绍了Linux CLion无法解析名称空间成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#include <iostream>
#include <stdlib.h>
int main()
{
std::srand( time(0) );
return 0;
}
此代码可以编译并正常运行.但是错误消息并没有消失,这让我很烦.也许有人解决了这个问题.
This code compiles and run fine. But error messsage doesn't disappear and it annoys me. Maybe someone solved this problem.
我的系统信息.
Linux desktop 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux
g++ (GCC) 6.1.1 20160707
P.S.该问题出现在附带的cstdlib中.我认为是IDE中的问题.
P.S. The problem appears with included cstdlib. I think the problem in the IDE.
推荐答案
使用C ++ 11解决了<随机>
Solved using C++ 11 < random >
这篇关于Linux CLion无法解析名称空间成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文