您的位置:首页 > Web前端

libusb库用法 编译出错testlibusb.c:(.text+0xc): undefined reference to `usb_init'

2014-01-17 14:45 639 查看
编译应用程序出现如下错误:

/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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐