Greetings,
I'm trying to output a list of atoms, and I get a consistency check failed whenever I run my external. the line in the _perform function is: /* to set up the list */ float parcors[ord]; /* to outlet the list */ outlet_list(x->x_obj.ob_outlet,gensym("list"),ord,parcors); /* and in _new */ outlet_new(&x->x_obj, &s_list);
and then I get the following from the compiler: warning: passing arg 4 of `outlet_list' from incompatible pointer type
...so what am I doing wrong?
Best, Ed
-> --> ----> -------> ------------> --------------------> r3search + praktik EK5perimenz
___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
(wow, no answer to this one after 5 days. i'll answer it then)
On Wed, 17 Aug 2005, Ed Kelly wrote:
/* to set up the list */ float parcors[ord];
This is wrong. A Pd list is made of Pd atoms. So you should write:
t_atom parcors[ord];
And then you would initialize those atoms using code like this:
for (i=0; i<ord; i++) SETFLOAT(parcors+i, 1.618034);
/* to outlet the list */ outlet_list(x->x_obj.ob_outlet,gensym("list"),ord,parcors); and then I get the following from the compiler: warning: passing arg 4 of `outlet_list' from incompatible pointer type
Then the above line won't cause a warning because argument 4 will be a t_atom* as it's supposed to be (see m_pd.h).
-> --> ----> -------> ------------> --------------------> r3search + praktik EK5perimenz
I like how the lengths of those arrows are 2,3,5,8,13,21. It's so Fibonacci.
____________________________________________________________________ Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada