Re: cygwin DLL and mingw main

2014-06-30 Thread Jan Nijtmans
2014-06-30 14:25 GMT+02:00 Soren Hein : > If I compile (1) with cygwin and (2) with mingw, the resulting program > segfaults when run. > Why does it segfault? It's driving me nuts. Probably it crashes because the internals of cygwin1.dll are not initialized. Somehow you will need to call the

cygwin DLL and mingw main

2014-06-30 Thread Soren Hein
Below are (1) a simple dll (dds.dll) and (2) a simple main program (dtest.cpp). After much experimentation I have reduced my problem to this tiny test case. If I compile (1) with cygwin and (2) with mingw, the resulting program segfaults when run. (1) with cygwin and (2) with cygwin works. (1