Re: Linking to multi-threaded MinGW DLL from Cygwin

2014-06-09 Thread Larry Hall (Cygwin)
On 06/09/2014 04:53 AM, Soren Hein wrote: I've tried -mno-cygwin since I read about that, but that doesn't seem to work anymore. That switch has been removed in favor of actual (32 and 64 bit) cross-compilers targeting native Windows. If you're actually targeting Cygwin's perl, then you don't

Re: Linking to multi-threaded MinGW DLL from Cygwin

2014-06-09 Thread sisyphus1
-Original Message- From: Soren Hein When compiling the XS code, there is a flag that I don't understand called "-I/usr/lib/perl5/5.14/686-cygwin-threads-64int/CORE" That just adds /usr/lib/perl5/5.14/686-cygwin-threads-64int/CORE to the list of directories that will be searched, loo

Linking to multi-threaded MinGW DLL from Cygwin

2014-06-09 Thread Soren Hein
I have a third-party, multi-threaded DLL (with .h file and .def file) that has been compiled using minGW. The DLL uses the Windows threadpool API. I want to use this DLL from Cygwin. What I'm actually doing is linking to this DLL from Perl XS code, and functionally speaking, this now works fine.