Awesome… this works! Thank you so much. Jamie
> On 25 May 2017, at 12:13, Christof Ressi <[email protected]> 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" <[email protected]> > An: [email protected] > 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? > _______________________________________________ [email protected] mailing > list UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
