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.