[PD] Linking externals on windows with mingw32
Thomas Grill
gr at grrrr.org
Thu May 25 20:26:18 CEST 2017
Hi Jamie,
if you like to contribute a pull request to the flext build system, it would be appreciated!
best, Thomas
--
Thomas Grill
http://grrrr.org
> Am 25.05.2017 um 15:09 schrieb Jamie Bullock <jamie.b.bullock at gmail.com>:
>
>
> Awesome… this works! Thank you so much.
>
> Jamie
>
>
>> On 25 May 2017, at 12:13, Christof Ressi <christof.ressi at gmx.at> wrote:
>>
>> Hi, could be a problem with your linker flags. Try these:
>>
>> gcc -static-libgcc -shared -Wl,--enable-auto-import "/c/pdbinpath/pd.dll" -o foo.dll foo.o
>>
>> I basically took the linker flags from pdlibbuilder. I generally recommend this tool for building externals because it's cross platform and really convenient.
>>
>> https://github.com/pure-data/pd-lib-builder/blob/master/Makefile.pdlibbuilder
>>
>> Christof
>>
>>
>> Gesendet: Donnerstag, 25. Mai 2017 um 11:48 Uhr
>> Von: "Jamie Bullock" <jamie at postlude.co.uk>
>> An: Pd-list at lists.iem.at
>> Betreff: [PD] Linking externals on windows with mingw32
>>
>>
>> Hi list,
>>
>> I'm trying to compile externals on Windows 10 using mingw32 toolchain. Pd version 0.47.1
>>
>> I always get link errors related to Pd's global symbols being undefined, e.g.
>>
>> undefined reference to `_imp__s_bang'
>> undefined reference to `_imp__s_list'
>>
>> etc
>>
>> My linker flags are:
>>
>> gcc -shared -Wl,--enable-auto-import -o test.dll -L.../pd/bin -lpd
>>
>> I get a similar issue linking externals built with Flext. Linkage seems to work fine except for these symbols.
>>
>> Any ideas?
>> _______________________________________________ Pd-list at lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170525/c75fabf0/attachment.sig>
More information about the Pd-list
mailing list