[PD-dev] creating a flext library

guenter geiger geiger at xdv.org
Thu Mar 20 20:23:49 CET 2003


I would discourage writing a library. It is much better
and much more flexible writing a single external.

Greetings,

Guenter

On Thu, 20 Mar 2003, Thomas Grill wrote:
> Hi Tim,
> have a look at the flext tutorial "lib1"!
>
> Your code
>
> > #include <flext.h>
> > void tbroute_setup();
> > void tbstrg_setup();
> >
> > static void tblib_setup()
> > {
> >   void tbroute_setup();
> >   void tbstrg_setup();
> > }
> > FLEXT_LIB_SETUP(tbext,tblib_setup)
>
> is rather bogus because "void tbroute_setup()" declares the tbroute_setup
> function (local to tblib_setup) but does not call it!! (that would be just
> "tbroute_setup()" )
>
> anyway, the correct library setup would be:
>
>
> #include <flext.h>
>
> static void tblib_setup()
> {
>     FLEXT_SETUP(tbroute);
>     FLEXT_SETUP(tbstrg);
> }
> FLEXT_LIB_SETUP(tbext,tblib_setup)
>
> There no problem with the function being static.
> Please note that your library has to be called "tbext" !
>
> best greetings,
> Thomas
>
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
>





More information about the Pd-dev mailing list