“编译g13驱动程序时添加符号错误:命令行中缺少DSO”
我正在尝试编译下面收到的下载: https://code.google.com/p/linux-g13-driver/
: https://code.google.com/p/linux-g13-driver/
运行make但我收到的错误,在网上搜索后,看起来像他们是程序员的错,但他们在这里:
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 1
如果有人有任何想法,请帮助我真的想让这个运行
在makefile中编辑如下所示的行,它应该编译:
FLAGS = -L /lib64 LIBS = -lusb-1.0 -l pthread