Hello,

Getting this on gentoo amd64 with gcc 4.1.1:

[EMAIL PROTECTED] ~/Desktop/wiimotepd $ make
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -W -Wshadow 
-Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch 
-I/usr/include -o wiimote.o -c wiimote.c
wiimote.c: In function 'wiimote_doConnect':
wiimote.c:369: error: incompatible type for argument 1 of 'wiimote_connect'
wiimote.c:369: warning: passing argument 2 of 'wiimote_connect' from 
incompatible pointer type

The piece of code is here :

[...]
void wiimote_doConnect(t_wiimote *x, t_symbol *addr)
{
        unsigned char buf[7];
        bdaddr_t bdaddr;

        // determine address:
        if (addr==gensym("NULL")) bdaddr = (bdaddr_t) *BDADDR_ANY;
        else str2ba(addr->s_name, &bdaddr);

        // connect:
        if (g_wiimoteList[0]==NULL) {
                x->wiimote = wiimote_connect(bdaddr, &wiimote_callback_0);
                x->wiimoteID = 0;
                g_wiimoteList[0] = x;
        }
        else if
[...]

Really don't know how to fix that... Anyone can help ?

Thanks a lot
r1

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to