hidclient icon indicating copy to clipboard operation
hidclient copied to clipboard

Collect2: Error

Open ghost opened this issue 8 years ago • 2 comments

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 functionmain': hidclient.c:(.text.startup+0x7c7): undefined reference to `ba2str' collect2: error: ld returned 1 exit status

Any help would be appreciated.

ghost avatar Aug 23 '16 14:08 ghost

I get this too and some more undefined references (Ubuntu Gnome 16.10)

zepatrik avatar Jan 12 '17 19:01 zepatrik

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

zepatrik avatar Jan 12 '17 19:01 zepatrik