hidclient
hidclient copied to clipboard
Collect2: Error
I'm trying to compile this on Mint 18 (Ubuntu 16.04) and I get this error:
hidclient.c:(.text+0x11c): undefined reference to sdp_data_alloc_with_length' /tmp/ccKpSfSH.o: In function
main':
hidclient.c:(.text.startup+0x7c7): undefined reference to `ba2str'
collect2: error: ld returned 1 exit status
Any help would be appreciated.
I get this too and some more undefined references (Ubuntu Gnome 16.10)
FIX: use the compiler command from the makefile:
gcc -o hidclient hidclient.c -O2 -lbluetooth -Wall
I don't see any difference except another order but this seems to fix the problem