免费的基本编译器错误23:找不到文件libsupc ++.a [英] free basic compiler error 23: File not found, libsupc++.a
问题描述
我正在尝试在ubutu 12.04中编译一个简单的hello world QBASIC程序.按照此处的说明下载并安装编译器. http://www.freebasic.net/get
I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get
我也将其发布在askubuntu.com https://askubuntu.com/questions/226084/free-basic-compiler-error-23-file-not-found-libsupc-a#comment279100_226084 ,但据报道在此处发布.这是我简单的QBASIC程序和编译详细信息.
Also I posted it on askubuntu.com https://askubuntu.com/questions/226084/free-basic-compiler-error-23-file-not-found-libsupc-a#comment279100_226084 but reported to post here. Here is my simple QBASIC program and compilation details.
print "hello word"
我用
fbc hello.bas
但是我遇到了以下错误.
But I got the following error.
hello.bas() error 23: File not found, libsupc++.a
ld: cannot find -lncurses ld: cannot find -lsupc++
推荐答案
您的系统缺少fbc
所需的依赖项.至少缺少一个软件包. libsupc++
是libstdc++
的一部分,该libstdc++
在安装g++
时安装.
Your system lacks dependencies required by fbc
. At least one package is missing. libsupc++
is part of libstdc++
which is installed when installing g++
.
在 http://www.freebasic.net上查看列表./wiki/wikka.php?wakka=CompilerInstalling
在Ubuntu上,您至少需要以下软件包:
On Ubuntu you will need at least these packages:
- gcc,g ++
- libncurses5-dev
- libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxpm-dev
- libffi-dev
您可以使用apt-get
或aptitude
或您选择的GUI软件包管理工具来安装它们.
You can install them using apt-get
or aptitude
or a GUI package management tool of your choice.
这篇关于免费的基本编译器错误23:找不到文件libsupc ++.a的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!