[PD-dev] How compile an external with visual c++ 6.0 ?

Thomas Grill gr at grrrr.org
Fri Oct 8 10:31:11 CEST 2004


Hi,

> An external is a "win32 Dynamic-link library" or a "win32 static library"
?

it's a dynamic one

> Must I use MFC (Microsoft Foundation Classes) ?

no

> I tested the "helloworld" from the HOWTO (in "win32 Dynamic-link library",
with no MFC), and I can't load my object in PD...
> I have this error :
> "load_object: symbol "helloworld_setup" not found
>  helloworld: can't load library"

Using VC you must "export" the setup function, either in the source code
file with something like

__declspec(dllexport) void helloworld_setup()
{
    .... init stuff
}

or when linking at the command line with
link /dll /export:helloworld_setup ....................

best greetings,
Thomas





More information about the Pd-dev mailing list