Skip to main content

Thread: usb.h


i getting ther following error while using usb.h
in function `device_init':
usb.c.text+0x7): undefined reference `usb_init'
usb.c.text+0xc): undefined reference `usb_find_busses'
usb.c.text+0x11): undefined reference `usb_find_devices'
usb.c.text+0x16): undefined reference `usb_busses'
collect2: ld returned 1 exit status
how use gcc -l , -i give reference usb.h.i not using libusb.

quote posted jaypatel view post
how use gcc -l , -i give reference usb.h.i not using libusb.


why not using libusb? need link application!

code:
gcc app.c -lusb
p.s. remember this... system header files define function prototypes, external variable (such in usb.h). implementation these functions (and variables) located within library file (eg. /usr/lib/libusb.so).


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk usb.h


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support