Hi all . I want/try/need to buid an external with vc++6 and the dll is created without any error nor warning, but pd's console says :
# tried D:\obj1\Debug\obj1.dll and succeeded # load_object: Symbol "obj1_setup" not found # newpd # ... couldn't create
i'm not a developer but i'm sure it's nothing important can someone help ?
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Gonzague DDR wrote:
Hi all . I want/try/need to buid an external with vc++6 and the dll is created without any error nor warning, but pd's console says :
# tried D:\obj1\Debug\obj1.dll and succeeded # load_object: Symbol "obj1_setup" not found # newpd # ... couldn't create
i'm not a developer but i'm sure it's nothing important can someone help ?
You probably forgot to put this magic incantation in front of the declaration of obj1_setup:
__declspec(dllexport)
This tells vc to export the name. Other compilers seem to do this automatically or with flags like -shared and -export_dynamic.
Martin
Martin Peach martinrp@vax2.concordia.ca a écrit : Gonzague DDR wrote:
Hi all . I want/try/need to buid an external with vc++6 and the dll is created without any error nor warning, but pd's console says :
# tried D:\obj1\Debug\obj1.dll and succeeded # load_object: Symbol "obj1_setup" not found # newpd # ... couldn't create
i'm not a developer but i'm sure it's nothing important can someone help ?
You probably forgot to put this magic incantation in front of the declaration of obj1_setup:
__declspec(dllexport)
This tells vc to export the name. Other compilers seem to do this automatically or with flags like -shared and -export_dynamic.
Martin
I imagine that "declaration of obj1_setup:" means , in the obj1.c , where it's writen "void obj1_setup(void)" But where shall i put this magic incantation ? ( and how ;?) I tried here and there , but even if vc do not return errors, i have the same Symbol not found from pd ...
ps : the obj1.c is the one given in the pd/doc/6.externs/obj1.c
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Gonzague DDR wrote:
*/Martin Peach martinrp@vax2.concordia.ca/* a écrit :
Gonzague DDR wrote: > Hi all . > I want/try/need to buid an external with vc++6 and the dll is created > without any error nor warning, but pd's console says : > > # tried D:\\obj1\\Debug\\obj1.dll and succeeded > # load_object: Symbol "obj1_setup" not found > # newpd > # ... couldn't create > > i'm not a developer but i'm sure it's nothing important > can someone help ? You probably forgot to put this magic incantation in front of the declaration of obj1_setup: __declspec(dllexport) This tells vc to export the name. Other compilers seem to do this automatically or with flags like -shared and -export_dynamic. Martin
I imagine that "declaration of obj1_setup:" means , in the obj1.c , where it's writen "void obj1_setup(void)" But where shall i put this magic incantation ? ( and how ;?) I tried here and there , but even if vc do not return errors, i have the same Symbol not found from pd ...
Yes it's like: __declspec(dllexport) void obj1_setup(void); for the prototype, and __declspec(dllexport) void obj1_setup(void) for the function.
Martin
Martin Peach martinrp@vax2.concordia.ca a écrit : Gonzague DDR wrote:
*/Martin Peach /* a écrit :
Gonzague DDR wrote: > Hi all . > I want/try/need to buid an external with vc++6 and the dll is created > without any error nor warning, but pd's console says : > > # tried D:\\obj1\\Debug\\obj1.dll and succeeded > # load_object: Symbol "obj1_setup" not found > # newpd > # ... couldn't create > > i'm not a developer but i'm sure it's nothing important > can someone help ? You probably forgot to put this magic incantation in front of the declaration of obj1_setup: __declspec(dllexport) This tells vc to export the name. Other compilers seem to do this automatically or with flags like -shared and -export_dynamic. Martin
I imagine that "declaration of obj1_setup:" means , in the obj1.c , where it's writen "void obj1_setup(void)" But where shall i put this magic incantation ? ( and how ;?) I tried here and there , but even if vc do not return errors, i have the same Symbol not found from pd ...
Yes it's like: __declspec(dllexport) void obj1_setup(void); for the prototype, and __declspec(dllexport) void obj1_setup(void) for the function.
Martin
Magic °) ! Thank you : it works perfectly .
Shall we put this line in the pd/doc/6.externs/obj1.c ?
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Hi all,
Yes it's like: __declspec(dllexport) void obj1_setup(void); for the prototype, and __declspec(dllexport) void obj1_setup(void) for the function.
Martin
Magic °) ! Thank you : it works perfectly .
Shall we put this line in the pd/doc/6.externs/obj1.c ?
From my point of view, the symbol exports should rather be done using a .def file or an option for the linker inside the respective makefile.
best greetings, Thomas