<div dir="ltr"><div>I'm triying to write into an array which in turn is into a garray type.<br></div>I wrote the following function:<br><br>void write_table(t_tabwrit *x, t_symbol *name)<br>{<br> t_garray *a;<br> t_array *b;<br> int size=0, i, yonset=0;<br> t_float step=0., val=0.; <br><br> x->table_name = name;<br> if (!(a = (t_garray *)pd_findbyclass(x->table_name, garray_class))) {<br> if (*name->s_name)<br> pd_error(x, "tabwrit: ERROR, %s: no such array", x->table_name->s_name);<br> x->table_name=NULL;<br> }<br><br> b=(t_array *)garray_getarray_floatonly(a, &yonset, &size);<br> step= 1. / (float)size;<br> <br> for(i=0; i < size; ++i) {<br> *((t_float *)(b->a_vec + i + yonset))=val;<br> val+=step; <br> }<br><br> garray_redraw(a);<br>return;<br>}<br clear="all"><div><div><br></div><div>But I get from the compiler the following error:<br>"error: dereferencing pointer to incomplete type"<br></div><div>I understand the maning of the error, but I've looked at the definition<br></div><div>of the array and garray types and I found no such "incomplete" type.<br></div><div>Any idea?<br></div><div>Or any other way to write floats to a garray vector?<br></div><div><br>Many thanks<br></div><div><br><br>-- <br>Oscar Pablo Di Liscia
</div></div></div>