Hallo!
it should work in MinGW without explicit export (just add /path/to/pd.dll to LFLAGS, and -mms-bitfields to CFLAGS if you want MSVC ABI compatibility).
ah - okay, I only linked to /path/to/pd.dll but didn't add it to LFLAGS, maybe this was the problem ...
LG Georg