[PD] [PD-dev] cross-platform support for externals ("extern" not enough?) (Was: Re: Problem building pdlua on MinGW (solved for now))

PSPunch shima at pspunch.com
Thu Sep 4 18:02:12 CEST 2008


Hi all,

> 
> Am 03.09.2008 um 22:11 schrieb Claude Heiland-Allen:
> 
>>
>> So the question is, does every external have to jump through this kind
>> of hoop if it wants to compile on Windows?
>>
>> /* support windows */
>> #ifdef MSW
>> #define EXPORT __declspec(dllexport) extern
>> #else
>> #define EXPORT                       extern
>> #endif
>>
> 
> Yes and no. With the above hoop you define all what is needed - on the 
> other hand you could also roll it out to the build stage and instruct 
> the linker via flags or .def files about which symbols to export.
> gr~~~
> 


I found the same topic regarding compilation of pdlua on Windows.

http://lists.puredata.info/pipermail/pd-list/2007-12/057637.html


To add a quick update to the topic, I think the built pdlua will not 
work on the binary package of Vanilla-Pd.

It does not have sys_register_loader() visible externally which I think 
in another discussion, Hans had mentioned he had patched for extended.

At least the symbol to that function was not found neither in pd.dll nor 
pd.lib attached to Vanilla.

--
David Shimamoto




More information about the Pd-list mailing list