[PD-dev] getting the classname in an class

Mathieu Bouchard matju at artengine.ca
Sat Oct 27 02:20:27 CEST 2007


On Fri, 26 Oct 2007, Hans-Christoph Steiner wrote:

>   binbuf_addv(b, "ssiisiiss", gensym("#X"),gensym("obj"),
>               x->x_obj.te_xpix, x->x_obj.te_ypix, 
> pd_class(&z->g_pd)->c_name,
>               x->x_width, x->x_height, x->x_bgcolour, x->x_fgcolour);
>
>   entry.c:504: error: dereferencing pointer to incomplete type

Oh yeah, you need to #include "m_imp.h" or something, sorry.

Because, in m_pd.h, only the existence of t_class is mentioned, not the 
content definition of t_class.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada


More information about the Pd-dev mailing list