usb.h: No such file or directory
#include <stdio.h>
#include <string.h> #include <stdlib.h> #include <usb.h> int main(int argc, char **argv){ struct usb_bus *bus; struct usb_device *dev; usb_init(); usb_find_busses(); usb_find_devices(); return 0; } I am compiling this code gcc libusb.c -o libusb -lusb but it saying error as usb.h: No such file or directory |
Try
Code:
whereis libusb |
On my system (Slackware 10.x) that is whereis usb.h
Code:
root@btd-techweb01:~# whereis usb.h PS There is a dedicated programming section at LQ; useful for future programming related questions |
All times are GMT -5. The time now is 07:51 AM. |