[PD]neewbe external's build

Martin Peach martinrp at vax2.concordia.ca
Mon Dec 19 23:23:27 CET 2005


Gonzague DDR wrote:
> 
> */Martin Peach <martinrp at 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





More information about the Pd-list mailing list