Martin Peach a écrit :
Frank Barknecht wrote:
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
With dlls you have to export symbols using a def file or /export: statement on the command line (or __declspec(dllexport) in the code with MSVC). On linux all symbols in a shared library are visible by default, it's about the structure of a windows dll versus that of a unix shared library, not gcc.
So unless pd.dll is built with sys_loader exposed, I won't be able to build a loader-external, right? If so, then I'll let the MS-Windows-people take over building pdlua.
Usually on Windows you link against pd.lib, not pd.dll, so it ought to work. You will need to include the header file containing sys_loader (except I can't find sys_loader anywhere in the pd source).
Martin
by the way, what is sys_loader() or what it is supposed to be? !There is no such thing like this in pd source, maybe it is "sys_loaded()" in s_loader.c?
Patrice Colet wrote:
by the way, what is sys_loader() or what it is supposed to be? !There is no such thing like this in pd source, maybe it is "sys_loaded()" in s_loader.c?
it's the thing you register with sys_register_loader(), which provides a hook to add custom "loader"-code that can register object-classes which Pd would not know by default.
mfga.sdr IOhannes