Thread: how to include usb.h ?

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    2

    how to include usb.h ?

    hello forum!!!

    i have no idea about c. so i dont know how to fix this:
    i want to install a prgramm via make and there is a include for "usb.h" somwhere and this line causes the error "file not found".

    so i guess i have to edit Makefile in order to tell gcc how usb.h is?
    what should i do?


    thank you

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    at first locate usb.h on your filesystem:
    Code:
    #locate usb.h
    The go through the makefiles and try to find the place where it defines additional include directories. All directories which shows up there should also be visibe inside the compiler output behind the string "-I".
    Add the directory you found in step one to the makefile.
    Run make distclean.
    Run Make again.

    Try until it works

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    2
    ..or just install libusb-dev

    (-;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug assertion failed!
    By chintugavali in forum C Programming
    Replies: 4
    Last Post: 12-11-2007, 06:23 AM
  2. MFC include BS
    By VirtualAce in forum Windows Programming
    Replies: 4
    Last Post: 10-31-2005, 12:44 PM
  3. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  4. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 05:38 PM
  5. MFC Assertion Failure
    By maxthecat in forum Windows Programming
    Replies: 5
    Last Post: 08-01-2002, 09:58 AM