原文:undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

解决方法 在QT工程的.pro文件中添加如下内容: LIBS ldl ...

2019-08-21 11:07 0 1211 推荐指数:

查看详情

undefined reference to symbol' pthread_create@@GLIBC_2.2.5'

我在ubuntu16.04上迁移工程,遇到了这个错误。 pthread库不是Linux系统默认的库,链接时需要添加-pthread参数。 这里注意是链接那一步添加-pthread,而不是编译选项。 ...

Sat Oct 13 03:28:00 CST 2018 0 2393
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM