I should add that I followed the steps given here:
https://lists.puredata.info/pipermail/pd-list/2007-06/051560.html
However, "-export_dynamic" gave me:
C:\msys64\mingw32\bin\ld.exe: warning: cannot find entry symbol xport_dynamic; defaulting to 10001000
trying "-E" and "--export-dynamic":
C:\msys64\mingw32\bin\ld.exe: warning: --export-dynamic is not supported for PE targets, did you mean --export-all-symbols?
so I tried with "--export-all-symbols" and this worked for obj1.c and obj2.c. I can't, however, see why it doesn't work for obj3.c as the difference to obj2.c is rather marginal (adds an outlet and a state variable).
Any hints are greatly appreciated!
Gesendet: Donnerstag, 07. April 2016 um 02:22 Uhr Von: "Christof Ressi" christof.ressi@gmx.at An: Pd-List pd-list@lists.iem.at Betreff: [PD] Externals built with MSYS2/MinGW won't load
Dear list,
I tried to compile the test externals in doc/6.externs on Windows 7 from the command line using MSYS2/MinGW. I put everything (source files, m_pd.h and pd.dll) in one folder for the sake of convenience.
I compile with $ gcc -c obj1.c -o obj1.o and link with $ ld --export-all-symbols -shared -o test-obj3.dll obj3.o pd.dll
compiling and linking works without any errors or warnings. test-obj1 and test-obj2 seem to load and work fine in Pd, but for test-obj3 Pd console tells me:
"C:\Program Files (x86)\pd vanilla\extra\stuff\test-obj3.dll: couldn't load"
The same thing happens when I try to build test-obj4, test-obj5 and test-dspobj~. What could be the problem? I took the source files as they were and built all objects the exact same way...
Many thanks in advance!
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list