0
votes

Hi I'm running a a very simple makefile with one line

g++ -o application main.cpp -lbluetooth

but I get the compile error

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

Could someone tell me what I need to do to fix this? What package do I need to install? Or do I need to fix a symbolic link?

2

2 Answers

1
votes

Ok installing the following packages fixed it:

apt-get install libbluetooth3 libbluetooth3-dbg libbluetooth-dev

0
votes

You need to install package with libraries for bluetooth.

I guess: apt-get install bluez-libs*