linux - 在编译过程中,它在 "cannot find -lexecinfo"处失败

标签 linux compiler-errors cmake cc slackware

这是 Slackware 14.1 Linux。 在编译过程中总是失败

/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lexecinfo

是否缺少库? 问题是我不知道它要查找的确切文件名,我有一个

     /usr/include/execinfo.h 

我们将不胜感激。

最佳答案

如果程序试图使用 backtrace(3) 等,那么您可能实际上不需要 -lexecinfo 选项来编译源代码。编辑您的 Makefile 并尝试删除它,看看它是否会构建。

关于linux - 在编译过程中,它在 "cannot find -lexecinfo"处失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41599871/

相关文章:

Linux 命令行 - 列出所有不可访问的文件和文件夹

java - Linux 上的 TCP 打洞和 setReuseAddress()

c# - ObservableCollection w/.net 4.0

c - 可移植 GTK cmake 项目

c++11 - 错误 : <atomic> is not implemented in LLVM version 5. 1

android - cmake 失败与 android ndk

c++ - 在 C++ 中序列化,在 Python 中反序列化?

linux - 如何选择 bash 脚本输出的日志级别

c - 转换 void* 缓冲区时无效使用 void 表达式

ios - 如何在 iOS 模拟器上删除 hello world 的东西