Changes

order of LIBS to avoid errors. link to libmath
Line 179: Line 179:  
To make this example work, extra libraries must be linked in.  Modify the standard Makefile LIBS line as follows:<br>
 
To make this example work, extra libraries must be linked in.  Modify the standard Makefile LIBS line as follows:<br>
 
<code>LIBS := -lwiiuse -lbte -logc</code>
 
<code>LIBS := -lwiiuse -lbte -logc</code>
 +
 +
On Mac OS X and Vista the order of the library flags is important, use this:<br>
 +
<code>LIBS := -lwiiuse -lbte -logc -lm</code>
 +
 +
Otherwise you will get [http://www.tehskeen.com/forums/showthread.php?t=3012&page=3 strange errors] like:<br>
 +
<pre>C:/devkitpro/libogc/lib/wii/libbte.a(physbusif.o): In function 'physbusif_output':
 +
physbusig.c: (.text.physbusif_output*0x148): undefined reference to 'USB_WriteBlkMsgAsync'</pre><br>
316

edits