相关疑难解决方法(0)

usr/bin/ld:找不到-l <nameOfTheLibrary>

我正在尝试编译我的程序,它返回此错误:

usr/bin/ld: cannot find -l<nameOfTheLibrary>
Run Code Online (Sandbox Code Playgroud)

在我的makefile中,我使用命令g++并链接到我的库,这是指向位于其他目录中的库的符号链接.

是否可以选择添加以使其正常工作?

c++ linux g++

401
推荐指数
8
解决办法
86万
查看次数

autoconf在Linux Mint上抱怨"C编译器无法创建可执行文件"

我试图在32位和64位安装上安装Linux Mint 16'petra'.

我的电脑上没有互联网连接,因此必须手动安装所有其他软件.作为开发人员,我以为我会尝试使用wxWidgets安装代码块,因此请遵循以下指令:

http://wiki.codeblocks.org/index.php?ti

为了执行安装,似乎我需要预先要求,所以按照 https://developer.gnome.org/gtk3/stable ... lding.html下载的glib'stuff',解压缩并运行configure的说明进行操作.

事情就是这样,事情就失败了.我得到在终端中的消息,指出C compiler cannot create executablessee config.log for more details包含(除其他东西)如下:

gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) 
configure:4072: $? = 0
configure:4061: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4072: $? = 4
configure:4061: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
Run Code Online (Sandbox Code Playgroud)

我该如何诊断这些错误?

linux autoconf gcc

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

linux ×2

autoconf ×1

c++ ×1

g++ ×1

gcc ×1