编译应用程序出现如下错误:
/tmp/ccEM4ZMg.o: In function `main':
testlibusb.c:(.text+0xc): undefined reference to `usb_init'testlibusb.c:(.text+0x11): undefined reference to `usb_find_busses'
testlibusb.c:(.text+0x16): undefined reference to `usb_find_devices'
testlibusb.c:(.text+0x1b): undefined reference to `usb_get_busses'
collect2: ld returned 1 exit status
英这样编译:
gcc testlibusb.c -o testusb -lusb