编译命令: gcc -o test libusbTest.c -I /usr/include/ -L /usr/lib/ -lusb-1.0 头文件如下: #include <libusb-1.0/libusb.h>