-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Thomas.
I like to build flext externals individually and also combine them into a library. The "lib1" tutorial shows how to build an external with many internal objects, but not how to combine individual flext externals into a library.
- -- Marc
Hi Marc,
I like to build flext externals individually and also combine them into a library. The "lib1" tutorial shows how to build an external with many internal objects, but not how to combine individual flext externals into a library.
i'm not sure if i get it right, but you have to decide beforehand whether you want standalone externals (with the FLEXT_NEW statement) or external objects that are part of a library (FLEXT_LIB). It's not possible with flext to combine ready-made standalone externals into a library. With standard pure pd however (without flext), you can link the object files of the standalone externals (but not the dlls or pd_linuxs or pd_darwins [or pd_irixs?]) combined with a setup function for the library.
best greetings, Thomas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
So would it be possible to use compilation flags in order to compile a flext external as a standalone external or as an external object that is part of a library?
Le 8 Août 2003 19:56, vous avez écrit :
Hi Marc,
I like to build flext externals individually and also combine them into a library. The "lib1" tutorial shows how to build an external with many internal objects, but not how to combine individual flext externals into a library.
i'm not sure if i get it right, but you have to decide beforehand whether you want standalone externals (with the FLEXT_NEW statement) or external objects that are part of a library (FLEXT_LIB). It's not possible with flext to combine ready-made standalone externals into a library. With standard pure pd however (without flext), you can link the object files of the standalone externals (but not the dlls or pd_linuxs or pd_darwins [or pd_irixs?]) combined with a setup function for the library.
best greetings, Thomas
- -- Marc
Hi Marc,
So would it be possible to use compilation flags in order to compile a flext external as a standalone external or as an external object that is part of a library?
Yes, that's no problem. Hmmm, i can't figure out an application for this, though. Could you give an example how you would use it?
Thomas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 9 Août 2003 06:20, Thomas Grill a écrit :
So would it be possible to use compilation flags in order to compile a flext external as a standalone external or as an external object that is part of a library?
Yes, that's no problem.
Yep, I made it, and that was easy.
Hmmm, i can't figure out an application for this, though. Could you give an example how you would use it?
There was an earlier debate about standalone externals vs libraries of externals. I now have a technique to build both kinds without much effort. If I develop a bunch of small unrelated standalone externals, I can decide to combine them into a library, without modifying the code. Also, since flext is cross-platform, platform-specific externals can easily be included or excluded from a library. I hope you can share my enthusiasm. :-)
- -- Marc
Hmmm, i can't figure out an application for this, though. Could you give an example how you would use it?
There was an earlier debate about standalone externals vs libraries of externals. I now have a technique to build both kinds without much effort. If I develop a bunch of small unrelated standalone externals, I can decide to combine them into a library, without modifying the code. Also, since flext is cross-platform, platform-specific externals can easily be included or excluded from a library. I hope you can share my enthusiasm. :-)
Hmmm, yes, although i'm not against external libraries ;-) Maybe i'm going to include a new statement which provides either the FLEXT_NEW or FLEXT_LIB functionality, depending on some preprocessor definition.
best greetings, Thomas