jaypatel
June 23rd, 2011, 06:18 PM
I am getting ther following error while using usb.h
In function `device_init':
usb.c:(.text+0x7): undefined reference to `usb_init'
usb.c:(.text+0xc): undefined reference to `usb_find_busses'
usb.c:(.text+0x11): undefined reference to `usb_find_devices'
usb.c:(.text+0x16): undefined reference to `usb_busses'
collect2: ld returned 1 exit status
How to use gcc -L and -I to give reference to usb.h.I am not using libusb.
In function `device_init':
usb.c:(.text+0x7): undefined reference to `usb_init'
usb.c:(.text+0xc): undefined reference to `usb_find_busses'
usb.c:(.text+0x11): undefined reference to `usb_find_devices'
usb.c:(.text+0x16): undefined reference to `usb_busses'
collect2: ld returned 1 exit status
How to use gcc -L and -I to give reference to usb.h.I am not using libusb.