Hello !
I found this document: http://iem.at/pd/externals-HOWTO/HOWTO-externals-en.html
But I have few questions... An external is a "win32 Dynamic-link library" or a "win32 static library" ? Must I use MFC (Microsoft Foundation Classes) ? If yes, in shared or in static library ?
I tested the "helloworld" from the HOWTO (in "win32 Dynamic-link library", with no MFC), and I can't load my object in PD... I have this error : "load_object: symbol "helloworld_setup" not found helloworld: can't load library"
Why ? Where is the error ?!
Hi,
An external is a "win32 Dynamic-link library" or a "win32 static library"
?
it's a dynamic one
Must I use MFC (Microsoft Foundation Classes) ?
no
I tested the "helloworld" from the HOWTO (in "win32 Dynamic-link library",
with no MFC), and I can't load my object in PD...
I have this error : "load_object: symbol "helloworld_setup" not found helloworld: can't load library"
Using VC you must "export" the setup function, either in the source code file with something like
__declspec(dllexport) void helloworld_setup() { .... init stuff }
or when linking at the command line with link /dll /export:helloworld_setup ....................
best greetings, Thomas
Thanks ! Now I use mingw developper studio (I prefer what is open source... !). I can compile with no problem but I can't load it.... again ! In my project I have source.c (the first example of the tutorial, the "helloworld") and a new header file def.h with:
#define export __declspec (dllexport) export void helloworld_setup();
I can build the library with no problem, but the result is "helloworld.lib.a"... It's not a dynamic library, is it ? I try to rename it and to move it in pd, but I have this beautifull error: "the DLL c:\pd\extra\helloworld.dll is not an avaible image of window" (it s bad translation, the original is: "L'application ou la DLL c:\pd\extra\helloworld.dll n'est pas une image Windows valide." Why ? Must I use "extra linking option" in minGW ? What are this options ?
And again... thanks for all !
Thomas Goepfer
Using VC you must "export" the setup function, either in the source code file with something like
__declspec(dllexport) void helloworld_setup() { .... init stuff }
or when linking at the command line with link /dll /export:helloworld_setup ....................
best greetings, Thomas
I'm very sorry... All is right ! It is just a problem with debug/relase build.... The objetc runs well !!!
Now I can rebuild biquad~... to make a version that is compatible with max/msp !!!
----- Original Message ----- From: "TotoEtLiTiti" totoetlititi@free.fr To: pd-dev@iem.at Sent: Friday, October 15, 2004 6:46 PM Subject: Re: [PD-dev] How compile an external with mingw ?
Thanks ! Now I use mingw developper studio (I prefer what is open source... !). I can compile with no problem but I can't load it.... again ! In my project I have source.c (the first example of the tutorial, the "helloworld") and a new header file def.h with:
#define export __declspec (dllexport) export void helloworld_setup();
I can build the library with no problem, but the result is "helloworld.lib.a"... It's not a dynamic library, is it ? I try to rename it and to move it in pd, but I have this beautifull error: "the DLL c:\pd\extra\helloworld.dll is not an avaible image of window" (it
s
bad translation, the original is: "L'application ou la DLL c:\pd\extra\helloworld.dll n'est pas une image Windows valide." Why ? Must I use "extra linking option" in minGW ? What are this options ?
And again... thanks for all !
Thomas Goepfer
Using VC you must "export" the setup function, either in the source code file with something like
__declspec(dllexport) void helloworld_setup() { .... init stuff }
or when linking at the command line with link /dll /export:helloworld_setup ....................
best greetings, Thomas
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev