[PD] compiling helloworld on winXP
Martin Peach
martinrp at vax2.concordia.ca
Thu Mar 9 23:34:45 CET 2006
.: monsular :. wrote:
> ok, thanks a lot cdr!
>
> i could now compile the project. but(!)..
>
> the outputted file was a helloworld.dll
>
> i now tried to import the .dll with
> "pd.ex -lib c:/path/to/external/helloworld" (tried wit and without
> file extesion .dll)
>
> but, what else .... this error followed in pd:
>
> -: can't load library
> load_object: Symbol "helloworld_setup" not found
> c:/path/to/external/helloworld: can't load library
>
> and now?
>
> the helloworld setup function is in the sourcefile.
> may this cause by a wrong compiled dll?
> or did i do something wrong at the importing?
PD found the dll but couldn't find the setup function.
Probably you need to put __declspec(dllexport) in front of the
declaration of helloworld_setup so that the name will be made visible to
programs that load helloworld.dll.
Like this:
__declspec(dllexport) void helloworld_setup(void)
Martin
More information about the Pd-list
mailing list