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.
Can you compile the examples in 6.externs in the PD documentation?
I seem to recall having a problem using underscores in my external names, just using just one word, like "tilde" as your external name, and then rename your other functions to match, eg "tidle_setup"
good luck. Ben
On Thu, 25 Jul 2002, Philip Stolz wrote:
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@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
B. Bogart ---------
Thanks for your quick responses and all your help! As Olaf Matthes recognized correctly I hadn't exported the respective symbols in the .dll file. After having done this, everything worked fine.
Regards, Phil.
Am Donnerstag, 25. Juli 2002 20:07 schrieb Ben Bogart - FMPM/F1999:
Can you compile the examples in 6.externs in the PD documentation?
I seem to recall having a problem using underscores in my external names, just using just one word, like "tilde" as your external name, and then rename your other functions to match, eg "tidle_setup"
good luck. Ben
On Thu, 25 Jul 2002, Philip Stolz wrote:
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@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
B. Bogart
PD-dev mailing list PD-dev@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev
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@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev