Re: using libusb
> I need to communicate with USB port by C. I found a comppresd (.rar) file. Its name is libusb-win32-bin-22.214.171.124. 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
|All times are GMT. The time now is 04:51 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.