Linux CLion 无法解析命名空间成员 [英] Linux CLion can't resolve namespace member

查看:37
本文介绍了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

附言问题出现在包含的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆