2015-04-27 09:21:23
来 源
中存储网
Ubuntu
今天在Ubuntu 12.04 软件中心中选装了Code::Blocks,安装完成后却连最简单的hello world 都无法编译运行。 编译时提示 /bin/sh: 1: g++: not found 运行时总提示 It seems that this file has not been built yet. Do you want to build it now? 因为系统没

今天在Ubuntu 12.04 软件中心中选装了Code::Blocks,安装完成后却连最简单的hello world 都无法编译运行。

编译时提示

/bin/sh: 1: g++: not found

运行时总提示

It seems that this file has not been built yet.

Do you want to build it now?

因为系统没有装C++编译器

安装相应编译器即可解决此问题(依据系统软件安装方式):

(ubuntu下)

sudo apt-get install g++

(Fedora下安装)

sudo yum install gcc-c++

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。