Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: using libusb

Reply
Thread Tools

Re: using libusb

 
 
Johann Klammer
Guest
Posts: n/a
 
      08-21-2012
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: using libusb James Kuyper C Programming 0 08-21-2012 08:13 PM
libusb, use Device::USB; works only as user root? georg.heiss@gmx.de Perl Misc 0 10-11-2009 09:54 AM
no code in webform using vs.net, but in webform using notepad timmso ASP .Net 1 12-12-2003 04:30 PM
Using GetOleDbSchemaTable to get SQL Server Field Description - using pete ASP .Net 1 08-29-2003 10:50 AM
Re: MVP? Index error on nested element using System.xml but NOT using msxml??? William F. Robertson, Jr. ASP .Net 1 06-25-2003 08:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57