编译 g13-driver 时出现“添加符号错误:命令行中缺少 DSO”

编译 g13-driver 时出现“添加符号错误:命令行中缺少 DSO”

我正在尝试编译此处收到的下载内容: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

如果有人有任何想法请帮助我真的很想让它运行

答案1

在 makefile 中编辑如下所示的行,它应该可以编译:

FLAGS    = -L /lib64 
LIBS     = -lusb-1.0 -l pthread

相关内容