【发布时间】:2019-04-17 17:20:12
【问题描述】:
我正在使用 BlueZ 库使用 C 开发基于蓝牙的 Linux 应用程序。我正在尝试将 libbluetooth-dev 链接到我的 C 文件,但它不起作用。
/usr/bin/ld: cannot find -libbluetooth-dev
collect2: error: ld returned 1 exit status
我的项目目录是 bluez-5.45,我正在尝试从这个文件夹构建项目并将我的 .C 文件添加到这个主文件夹中
我安装了 libbluetooth-dev 库并尝试了该链接但无法做到这一点。
链接命令:
gcc -o output myfile.c -libbluetooth
请让我知道我犯的错误。
【问题讨论】: