Page 1 of 1

no compiling usbtool

Posted: Mon Jan 07, 2013 2:49 am
by Kasia
Hi ...

I am trying compile usbtool.c from http://www.obdev.at/downloads/vusb/vusb-20121206.zip /examples/usbtool and receives message :

Code: Select all

kasia@wind ~
$ make -f Makefile.windows
opendevice.c: In function 'usbOpenDevice':
opendevice.c:123:5: warning: implicit declaration of function 'usb_find_busses'
[-Wimplicit-function-declaration]
opendevice.c:124:5: warning: implicit declaration of function 'usb_find_devices'
 [-Wimplicit-function-declaration]
opendevice.c:125:5: warning: implicit declaration of function 'usb_get_busses' [
-Wimplicit-function-declaration]
opendevice.c:125:13: warning: assignment makes pointer from integer without a ca
st [enabled by default]
opendevice.c:125:47: error: dereferencing pointer to incomplete type
opendevice.c:126:22: error: dereferencing pointer to incomplete type
opendevice.c:126:47: error: dereferencing pointer to incomplete type
opendevice.c:127:37: error: dereferencing pointer to incomplete type
opendevice.c:128:50: error: dereferencing pointer to incomplete type
opendevice.c:131:17: warning: passing argument 1 of 'usb_open' from incompatible
 pointer type [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/usb.h:486:17: note: ex
pected 'struct usb_device *' but argument is of type 'struct usb_device *'
opendevice.c:135:100: error: dereferencing pointer to incomplete type
opendevice.c:135:126: error: dereferencing pointer to incomplete type
opendevice.c:135:25: warning: implicit declaration of function 'usb_strerror' [-
Wimplicit-function-declaration]
opendevice.c:140:23: error: dereferencing pointer to incomplete type
opendevice.c:141:56: error: dereferencing pointer to incomplete type
opendevice.c:146:118: error: dereferencing pointer to incomplete type
opendevice.c:146:144: error: dereferencing pointer to incomplete type
opendevice.c:152:31: error: dereferencing pointer to incomplete type
opendevice.c:153:64: error: dereferencing pointer to incomplete type
opendevice.c:158:121: error: dereferencing pointer to incomplete type
opendevice.c:158:147: error: dereferencing pointer to incomplete type
opendevice.c:164:39: error: dereferencing pointer to incomplete type
opendevice.c:165:72: error: dereferencing pointer to incomplete type
opendevice.c:170:128: error: dereferencing pointer to incomplete type
opendevice.c:170:154: error: dereferencing pointer to incomplete type
opendevice.c:175:136: error: dereferencing pointer to incomplete type
opendevice.c:175:162: error: dereferencing pointer to incomplete type
opendevice.c:177:150: error: dereferencing pointer to incomplete type
opendevice.c:177:176: error: dereferencing pointer to incomplete type
make: *** [opendevice.o] Error 1


Still know too little C, in order to understand how to correct the error. I did not find hints, so please help.
In Linux (Slacware 12.2) everything is good. No errors.

I'm using WindowsXP SP3, mingw-get-inst-20120426.exe (662.7 kB), libusb-win32 version 1.2.6.0. (working ok. powerswitch recognised ok.) and I made all of the viewtopic.php?f=8&t=4749&p=15603&hilit=compile#p15603 .

Regards