<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/8193" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-01-07T02:49:45+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/8193</id>

		<entry>
		<author><name><![CDATA[Kasia]]></name></author>
		<updated>2013-01-07T02:49:45+02:00</updated>

		<published>2013-01-07T02:49:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8193&amp;p=24490#p24490</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8193&amp;p=24490#p24490"/>
		<title type="html"><![CDATA[no compiling usbtool]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8193&amp;p=24490#p24490"><![CDATA[
Hi ...<br /><br />I am trying compile usbtool.c from <!-- m --><a class="postlink" href="http://www.obdev.at/downloads/vusb/vusb-20121206.zip">http://www.obdev.at/downloads/vusb/vusb-20121206.zip</a><!-- m --> /examples/usbtool and receives message :<br /><div class="codebox"><p>Code: </p><pre><code>kasia@wind ~<br />$ make -f Makefile.windows<br />opendevice.c: In function 'usbOpenDevice':<br />opendevice.c:123:5: warning: implicit declaration of function 'usb_find_busses'<br />&#91;-Wimplicit-function-declaration&#93;<br />opendevice.c:124:5: warning: implicit declaration of function 'usb_find_devices'<br /> &#91;-Wimplicit-function-declaration&#93;<br />opendevice.c:125:5: warning: implicit declaration of function 'usb_get_busses' &#91;<br />-Wimplicit-function-declaration&#93;<br />opendevice.c:125:13: warning: assignment makes pointer from integer without a ca<br />st &#91;enabled by default&#93;<br />opendevice.c:125:47: error: dereferencing pointer to incomplete type<br />opendevice.c:126:22: error: dereferencing pointer to incomplete type<br />opendevice.c:126:47: error: dereferencing pointer to incomplete type<br />opendevice.c:127:37: error: dereferencing pointer to incomplete type<br />opendevice.c:128:50: error: dereferencing pointer to incomplete type<br />opendevice.c:131:17: warning: passing argument 1 of 'usb_open' from incompatible<br /> pointer type &#91;enabled by default&#93;<br />c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/usb.h:486:17: note: ex<br />pected 'struct usb_device *' but argument is of type 'struct usb_device *'<br />opendevice.c:135:100: error: dereferencing pointer to incomplete type<br />opendevice.c:135:126: error: dereferencing pointer to incomplete type<br />opendevice.c:135:25: warning: implicit declaration of function 'usb_strerror' &#91;-<br />Wimplicit-function-declaration&#93;<br />opendevice.c:140:23: error: dereferencing pointer to incomplete type<br />opendevice.c:141:56: error: dereferencing pointer to incomplete type<br />opendevice.c:146:118: error: dereferencing pointer to incomplete type<br />opendevice.c:146:144: error: dereferencing pointer to incomplete type<br />opendevice.c:152:31: error: dereferencing pointer to incomplete type<br />opendevice.c:153:64: error: dereferencing pointer to incomplete type<br />opendevice.c:158:121: error: dereferencing pointer to incomplete type<br />opendevice.c:158:147: error: dereferencing pointer to incomplete type<br />opendevice.c:164:39: error: dereferencing pointer to incomplete type<br />opendevice.c:165:72: error: dereferencing pointer to incomplete type<br />opendevice.c:170:128: error: dereferencing pointer to incomplete type<br />opendevice.c:170:154: error: dereferencing pointer to incomplete type<br />opendevice.c:175:136: error: dereferencing pointer to incomplete type<br />opendevice.c:175:162: error: dereferencing pointer to incomplete type<br />opendevice.c:177:150: error: dereferencing pointer to incomplete type<br />opendevice.c:177:176: error: dereferencing pointer to incomplete type<br />make: *** &#91;opendevice.o&#93; Error 1<br /></code></pre></div><br /><br />Still know too little C, in order to understand how to correct the error. I did not find hints, so please help.<br />In Linux (Slacware 12.2) everything is good. No errors.<br /><br />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 <!-- l --><a class="postlink-local" href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=4749&amp;p=15603&amp;hilit=compile#p15603">viewtopic.php?f=8&amp;t=4749&amp;p=15603&amp;hilit=compile#p15603</a><!-- l --> .<br /><br />Regards<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=14392">Kasia</a> — Mon Jan 07, 2013 2:49 am</p><hr />
]]></content>
	</entry>
	</feed>
