<div dir="ltr"><div>Already solved, please ignore the question.<br></div>Best<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-14 16:56 GMT-03:00 oscar pablo di liscia <span dir="ltr"><<a href="mailto:odiliscia@gmail.com" target="_blank">odiliscia@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br><br>-- <br>Oscar Pablo Di Liscia
</div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Oscar Pablo Di Liscia
</div>