Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect2: Error #2

Open
ghost opened this issue Aug 23, 2016 · 2 comments
Open

Collect2: Error #2

ghost opened this issue Aug 23, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 23, 2016

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.

@zepatrik
Copy link

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

@zepatrik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant