【发布时间】:2016-03-12 15:04:19
【问题描述】:
我刚刚提取了一个 git 存储库,我和我的朋友正在其中开发一个应用程序。当我运行 make 时,我遇到了这个错误:
对符号“pthread_create@@GLIBC_2.2.5”的未定义引用 /lib/x86_64-linux-gnu/libpthread.so.0:添加符号时出错:DSO 命令行collect2中缺少:错误:ld返回1退出状态 Makefile:182: 目标 'bin/release/ns' 的配方失败 make[1]: * [bin/release/ns] 错误 1 Makefile:133: 目标“发布”的配方 制作失败:* [发布] 错误 2
我的朋友拉了同一个分支,他运行它没有任何问题。
您能给我一些关于修复的提示吗?详细解答将不胜感激。
【问题讨论】:
-
链接时你的makefile是否指定
-pthread? -
问题是 .谢谢
标签: c++ compiler-errors makefile ubuntu-15.04