[PD-dev] pd externals windows

Daniel Heckenberg daniel at bogusfront.org
Fri Jul 26 02:51:05 CEST 2002


you're right about one probable cause of the problem:
you need to make sure that the exported names of the function are c style,
not c++

this can be done in a number of ways:
 - explicitly in a DEF file
 - wrapping the function declarations in an extern "C" block (or applying
extern "C" to each individually)
 - ...

you can check your dll's exports easily using the "depends" program that
comes with visual studio (under the visual studio tools menu in the start
menu system).  case sensitivity may also be an issue.

daniel

> Hello,
> I'm just trying to get a pd external to work with a binary
> windows release of
> pd. I compiled my external with MSVC++ 6.0 and I'm loading the
> lib using the
> following command when starting pd:
>
> pd -nomidiin -path d:\pd-patches -lib d:PDLIB\source_tilde
>
> pd is printing the following error message:
>
> load_object: Symbol "source_tilde_setup" not found
> D:/PDLIB/source_tilde: can't load library
>
> pd is definitely finding the .dll file and there's also a
> source_tilde_setup
> function compiled into the library. I guess that my problem has
> something to
> do with C++ -> C - functions in dlls so I tried using the
> "disable language
> extensions" switch of MSVC++ in order to get ANSI C but this
> seemed to have
> no effect.
>
> Does anyone know how I could get rid of this problem?
>
> Thanks in advance,
>                              Phil.
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
>





More information about the Pd-dev mailing list