[PD-dev] problem making a helloworld external

Peter Worth peterworth2 at googlemail.com
Thu Apr 27 17:41:18 CEST 2006


On 26/04/06, IOhannes m zmoelnig <zmoelnig at iem.at> wrote:
> walter jenner wrote:
> > hello there..
> >
> > i tried to make the helloworld external described in j.m.zmoelnigs
> > "howto write an external for pd".
>
> great!
>
> >
> > i used visual studio .net 2003 to build the dll, and had no errors with it.
> >
> > then i tried using the external, and this did not work. the dll resides
> > in the same directory as the pd file which should use the helloworld
> > object.
> >
> > i get this error from the pd main window:
> >
> > load_object: Symbol "helloworld_setup" not found
> > helloworld
> > ... couldn't create
> >
> > what a possible mistakes i could have made?
>
> most likely you haven't read the archives...
>
> http://lists.puredata.info/search/PD-dev?query=helloworld
> http://lists.puredata.info/search/PD-list?query=helloworld
>
> you must declare a function to be exported, in order to make pd see it;
> in this case this would be "helloworld_setup"

specifically, you need to export it like this (for a windows dll):

extern "C" __declspec( dllexport ) void helloworld_setup(void)
{
...

pete.




More information about the Pd-dev mailing list