thank you again for your fast answer. So here it is:
carlos@Linux:~/Desktop/VFS301/cli$ sudo make
[sudo] password for carlos:
gcc -ggdb `pkg-config --cflags libusb-1.0` `pkg-config --libs libusb-1.0` -o cli proto.c cli.c
/tmp/cchqESW9.o: In function `usb_init':
/home/carlos/Desktop/VFS301/cli/cli.c:52: undefined reference to `libusb_init'
/home/carlos/Desktop/VFS301/cli/cli.c:60: undefined reference to `libusb_open_device_with_vid_pid'
/home/carlos/Desktop/VFS301/cli/cli.c:73: undefined reference to `libusb_kernel_driver_active'
/home/carlos/Desktop/VFS301/cli/cli.c:75: undefined reference to `libusb_detach_kernel_driver'
/home/carlos/Desktop/VFS301/cli/cli.c:81: undefined reference to `libusb_claim_interface'
/home/carlos/Desktop/VFS301/cli/cli.c:88: undefined reference to `libusb_reset_device'
/home/carlos/Desktop/VFS301/cli/cli.c:94: undefined reference to `libusb_control_transfer'
/tmp/cchqESW9.o: In function `usb_deinit':
/home/carlos/Desktop/VFS301/cli/cli.c:110: undefined reference to `libusb_reset_device'
/home/carlos/Desktop/VFS301/cli/cli.c:117: undefined reference to `libusb_release_interface'
/home/carlos/Desktop/VFS301/cli/cli.c:124: undefined reference to `libusb_close'
/home/carlos/Desktop/VFS301/cli/cli.c:130: undefined reference to `libusb_exit'
/tmp/cchqESW9.o: In function `usb_recv':
/home/carlos/Desktop/VFS301/cli/cli.c:161: undefined reference to `libusb_bulk_transfer'
/tmp/cchqESW9.o: In function `usb_send':
/home/carlos/Desktop/VFS301/cli/cli.c:180: undefined reference to `libusb_bulk_transfer'
collect2: ld returned 1 exit status
make: *** [cli] Error 1
@Lopan,
thank you again for your fast answer. So here it is:
carlos@ Linux:~ /Desktop/ VFS301/ cli$ sudo make Desktop/ VFS301/ cli/cli. c:52: undefined reference to `libusb_init' Desktop/ VFS301/ cli/cli. c:60: undefined reference to `libusb_ open_device_ with_vid_ pid' Desktop/ VFS301/ cli/cli. c:73: undefined reference to `libusb_ kernel_ driver_ active' Desktop/ VFS301/ cli/cli. c:75: undefined reference to `libusb_ detach_ kernel_ driver' Desktop/ VFS301/ cli/cli. c:81: undefined reference to `libusb_ claim_interface ' Desktop/ VFS301/ cli/cli. c:88: undefined reference to `libusb_ reset_device' Desktop/ VFS301/ cli/cli. c:94: undefined reference to `libusb_ control_ transfer' Desktop/ VFS301/ cli/cli. c:110: undefined reference to `libusb_ reset_device' Desktop/ VFS301/ cli/cli. c:117: undefined reference to `libusb_ release_ interface' Desktop/ VFS301/ cli/cli. c:124: undefined reference to `libusb_close' Desktop/ VFS301/ cli/cli. c:130: undefined reference to `libusb_exit' Desktop/ VFS301/ cli/cli. c:161: undefined reference to `libusb_ bulk_transfer' Desktop/ VFS301/ cli/cli. c:180: undefined reference to `libusb_ bulk_transfer'
[sudo] password for carlos:
gcc -ggdb `pkg-config --cflags libusb-1.0` `pkg-config --libs libusb-1.0` -o cli proto.c cli.c
/tmp/cchqESW9.o: In function `usb_init':
/home/carlos/
/home/carlos/
/home/carlos/
/home/carlos/
/home/carlos/
/home/carlos/
/home/carlos/
/tmp/cchqESW9.o: In function `usb_deinit':
/home/carlos/
/home/carlos/
/home/carlos/
/home/carlos/
/tmp/cchqESW9.o: In function `usb_recv':
/home/carlos/
/tmp/cchqESW9.o: In function `usb_send':
/home/carlos/
collect2: ld returned 1 exit status
make: *** [cli] Error 1