ubuntu - 编译器错误 :/usr/bin/ld: cannot find -lbluetooth

标签 ubuntu bluetooth makefile

嗨,我正在用一行运行一个非常简单的 makefile

g++ -o application main.cpp -lbluetooth



但我得到编译错误

g++ -o application main.cpp -lbluetooth
/usr/bin/ld: cannot find -lbluetooth



有人能告诉我我需要做什么来解决这个问题吗?我需要安装什么软件包?还是我需要修复符号链接(symbolic link)?

最佳答案

好的,安装以下软件包修复了它:

apt-get install libbluetooth3 libbluetooth3-dbg libbluetooth-dev

关于ubuntu - 编译器错误 :/usr/bin/ld: cannot find -lbluetooth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36645095/

相关文章:

ubuntu - 运行 Airflow 时无法访问 localhost

apache - 创建 .htaccess 文件(Ubuntu Server 12.04 w/Apache2)

android - 如何使用任何模拟 Api for junit 模拟蓝牙适配器

c - 如何告诉编译器使用 ARM 的硬件浮点指令

c++ - 如何在 CMake 中使用 PJSIP 库?

docker - Ubuntu Docker 容器权限被拒绝 StreamWriter

python - OSError : [Errno 36] File name too long: for python package and . txt 文件, Pandas 打开

java - 如何在此代码中实现 OnItemClickListener?

android - 蓝牙 SDP 和 UUID 如何工作? (专门针对安卓)

c++ - 在单个 makefile 目标中编译 C 和 CPP 源代码