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

Thomas Grill gr at grrrr.org
Wed Sep 3 22:40:00 CEST 2008


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~~~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2407 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080903/7a07ca02/attachment.bin>


More information about the Pd-dev mailing list