"error adding symbols: DSO missing from command line" while compiling g13-driver
Sebastian Wright
I'm trying to compile the download received here: by running make but I'm receiving errors that to me, after searching on the web, look like they're the programmers fault but here they are:
g++ c-source/G13.o c-source/G13Action.o c-source/Macro.o c-source/MacroAction.o c-source/Main.o c-source/Output.o c-source/PassThroughAction.o -o Linux-G13-Driver -lusb-1.0
/usr/bin/ld: c-source/Main.o: undefined reference to symbol 'pthread_kill@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Linux-G13-Driver] Error 1If anyone has any ideas please help I really want to get this running
41 Answer
Edit the lines as shown below in the makefile and it should compile:
FLAGS = -L /lib64
LIBS = -lusb-1.0 -l pthread 3