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

Thomas Grill gr at grrrr.org
Tue Nov 1 15:13:31 CET 2005


Hi Georg,
the problem might be smaller than you think....
a DSP object (which is one derived from flext_dsp) needs to be called 
B~ and also the resulting binary.
B_setup is not found, but B_tilde_setup would be.
This restriction doesn't apply to object libraries.

gr~~~

Am 31.10.2005 um 13:44 schrieb Georg Holzmann:

> 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
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
>
>





More information about the Pd-dev mailing list