"Exec format error" is the returned error string from dlopen, which tried to load your dll. So it looks like either your cflags or ldflags are wrong, or the lib you are linking against cannot be loaded by cygwin's perl.
Easiest would be to link both dll's statically, your MOD.dll and the ??? lib you are linking against. Maybe both libc versions are not compatible. e.g. msvcrt and cygwin. Or the PE header of the 3rd dll is not matching, 64bit maybe. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple