how to include usb.h ?

This is a discussion on how to include usb.h ? within the Linux Programming forums, part of the Platform Specific Boards category; hello forum!!! i have no idea about c. so i dont know how to fix this: i want to install ...

  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, 05:23 AM
  2. MFC include BS
    By VirtualAce in forum Windows Programming
    Replies: 4
    Last Post: 10-31-2005, 11:44 AM
  3. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 12: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21