[PD-dev] [flext] how to call the right setup function

Georg Holzmann grhPD at gmx.at
Mon Oct 31 13:44:41 CET 2005


Hallo Thomas, list!

I have a problem with flext in the following situation:
I derive from a class, which is derived from flext_dsp, but should have 
no setup function, ...


example:

class A : public flext_dsp
{
   FLEXT_HEADER(A,flext_dsp)

   [...]

   // no setup function here
}

class B : public A
{
   FLEXT_HEADER_S(B,A,setup)

   [...]

   private:

     static void setup(t_classid c);
     FLEXT_CALLBACK(some_methods_from_A_or_B)
};

FLEXT_NEW_DSP_V("B_name",B)

void B::setup(t_classid c)
{
   [...]
}


everything compiles fine, but when I try to load B.pd_linux I get:
load_object: Symbol "B_setup" not found


Thanks for any hints,
LG
Georg




More information about the Pd-dev mailing list