[PD] compiling external examples in VS.net

G Quested garryq at comp.leeds.ac.uk
Wed Jan 25 18:45:23 CET 2006


On Wed, 25 Jan 2006, IOhannes m zmoelnig wrote:

> G Quested wrote:
>> Hi,
>> I am trying to compile and run the example externals bundled with Pd
>> 39.1 (the pre-compiled for windows version).
>> 
>> I can compile the obj1.c file and create a dll which i place in the
>> extras directory but Pd doesn't like it:
>> -------------------------------------------
>> load_object: Symbol "obj1_setup" not found
>> obj1
>> ... could not create
>> -------------------------------------------
>> 
>> I exported obj1_setup using __declspec(dllexport)
>
> all my knowledge is vc6-based, so i might talk nonsense.
> however, i think you also have to tell the linker that you want to export the 
> setup-function via the "/export:obj1_setup" flag. (i think that 
> "__declspec(dllexport)" is just for the compiler)
>
Thanks for the replies.
I tried adding /export:obj1_setup to the command line section of the
project->properties->linker but has made no difference. I also tried
using a .def file but this hasn't helped.

I'm not too familiar with Visual Studio. Is their a tool to inspect the
dll's symbol table. At least then i will know the dll is ok. I will
try to find a machine with VS6 and compile the code there to see if
that sorts it out.

That wont solve my problem as i need to be able to compile on VS.net for
the thing I'm working on :-(

Thanks again,
Garry.

> mfg.asd.r
> IOhannes
>

-- 
Garry Quested
Research Assistant
ICSRiM
School of Music
University of Leeds





More information about the Pd-list mailing list