gpt4 book ai didi

c++ - Linux CLion 无法解析命名空间成员

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:44:35 26 4
gpt4 key购买 nike

#include <iostream>
#include <stdlib.h>

int main()
{
std::srand( time(0) );

return 0;
}

Error message

此代码编译并运行良好。但是错误消息并没有消失,这让我很烦。也许有人解决了这个问题。

我的系统信息。

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 的问题。

最佳答案

使用 C++ 11 < random > 解决了

关于c++ - Linux CLion 无法解析命名空间成员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38674349/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com