在CLion中编译简单程序时出错

时间:2016-07-18 12:00:34

标签: c++ linux gcc compilation clion

我在编写简单的" Hello World"时遇到了问题。 Linux Solus上的CLion程序。可能是因为错误的编译器设置或类似的东西,但我没有想法,所以如果你们中的任何人有解决方案,我会很高兴。 我安装了gcc,gdb和cmake,所以我不认为有任何遗漏...

尝试运行示例程序时出现此错误:

CLion compiling

我会感激任何帮助,因为我在Fedora,Mint和Windows上安装它并且它没有问题......我只对Solus有麻烦。

1 个答案:

答案 0 :(得分:1)

错误是:

/usr/bin/ld: cannot find /usr/lib64/libc_nonshared.a
collect2: error: ld returned 1 exit status

问题是您的开发环境尚未完全设置。运行命令:

sudo eopkg it -c system.devel