ld: symbol(s) not found for architecture x86_64 (libusb)

后端 未结 1 1859
滥情空心
滥情空心 2021-01-21 09:25

I\'m trying to compile the following libusb snippet on my Mac:

#include 
#include 
#include 

int main(void) {
            


        
相关标签:
1条回答
  • 2021-01-21 09:59

    As we worked out in all the comments the link command that worked is

    gcc -L/usr/local/Cellar/libusb/1.0.9/lib -o "libusb_example" ./src/libusb_example.o -lusb1.0
    
    0 讨论(0)
提交回复
热议问题