Re: using libusb

Discussion in 'C Programming' started by Johann Klammer, Aug 21, 2012.

  1. mahnaz0098 wrote:
    > Hello
    > I need to communicate with USB port by C. I found a comppresd (.rar) file. Its name is libusb-win32-bin-1.2.6.0. I extracted it and it contains several files and folders.one header file(lusb0_usb) and some example programs to communicate via USB .
    > I added lusb0_usb.h to this program (right click on Header Files in solution explorer and choose add> existing item then browse lusb0_usb.h),
    > (#include<lusb0_usb.h> ). I can't debug this example program. Do I need to do another action to add this new library (lusb0_usb.h) to use in this program?
    > i use visual C++ and it shows me this error:
    >
    > Error 1 fatal error C1083: Cannot open include file: 'lusb0_usb.h': No such file or directory c:\users\...\usb\usb.c
    >
    >
    >


    It may not be in the compiler's search path.
    Also, use #include<lusb0_usb.h> for system headers
    and #include"lusb0_usb.h" for local ones.
    You can try to #include"the/full/path/to/lusb0_usb.h"

    But make sure to use relative paths, or(better) set them somewhere in
    your IDE.
    Johann Klammer, Aug 21, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William F. Robertson, Jr.
    Replies:
    1
    Views:
    970
    Kathy Burke
    Jun 25, 2003
  2. pete
    Replies:
    1
    Views:
    2,933
    Jon Yates
    Aug 29, 2003
  3. timmso
    Replies:
    1
    Views:
    477
    Alex Papadimoulis
    Dec 12, 2003
  4. Replies:
    0
    Views:
    141
  5. James Kuyper

    Re: using libusb

    James Kuyper, Aug 21, 2012, in forum: C Programming
    Replies:
    0
    Views:
    631
    James Kuyper
    Aug 21, 2012
Loading...

Share This Page