Page 1 of 1

VUSB HID-CUSTOM-CLASS ERROR!!

Posted: Tue Jun 30, 2015 11:38 am
by usbcapu
Hi Friends!
I am newbie to Vusb. i downloaded VUSB and tried several example like hid-mouse,hid-data with attiny85 MCU.It worked with MINGW host.
Now i am trying custom class, and hid-custom-rq examples,but i am facing error when i MAKE in MINGW using 'make -f makefile.windows'

[BELOW I have copied statements from MINGW client.]

E:\vusb-20121206\vusb-20121206\examples\custom-class\commandline>make -f makefil
e.windows
gcc -I/usr/local/mingw/include -O -g -Wall -c opendevice.c
In file included from opendevice.c:17:0:
opendevice.h:28:23: error: unknown type name 'usb_dev_handle'
int usbGetStringAscii(usb_dev_handle *dev, int index, char *buf, int buflen);
^
opendevice.h:39:19: error: unknown type name 'usb_dev_handle'
int usbOpenDevice(usb_dev_handle **device, int vendorID, char *vendorNamePatter
n, int productID, char *productNamePattern, char *serialNamePattern, FILE *print
MatchingDevicesFp, FILE *warningsFp);
^
opendevice.c:85:23: error: unknown type name 'usb_dev_handle'
int usbGetStringAscii(usb_dev_handle *dev, int index, char *buf, int buflen)
^
opendevice.c:115:19: error: unknown type name 'usb_dev_handle'
int usbOpenDevice(usb_dev_handle **device, int vendorID, char *vendorNamePatter
n, int productID, char *productNamePattern, char *serialNamePattern, FILE *print
MatchingDevicesFp, FILE *warningsFp)
^
opendevice.c:76:12: warning: 'shellStyleMatch' defined but not used [-Wunused-fu
nction]
static int shellStyleMatch(char *text, char *pattern)
^
make: *** [opendevice.o] Error 1



please help me to get out of this.