[PD] Linking externals on windows with mingw32
Christof Ressi
christof.ressi at gmx.at
Thu May 25 13:20:23 CEST 2017
sorry, "/c/pdbinpath/pd.dll" is unix style (I use a msys2 shell). What I meant is: absolute path to pd.dll.
> Gesendet: Donnerstag, 25. Mai 2017 um 13:13 Uhr
> Von: "Christof Ressi" <christof.ressi at gmx.at>
> An: "Jamie Bullock" <jamie at postlude.co.uk>, pd-list <pd-list at iem.at>
> Betreff: Re: [PD] Linking externals on windows with mingw32
>
> 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
>
More information about the Pd-list
mailing list