This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin DLL and mingw main


2014-06-30 14:25 GMT+02:00 Soren Hein <soren.hein@gmail.com>:
> 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 function cygwin_dll_init() during initialization
(if it's possible at all what you are trying to do .....).

See:
    <http://cygwin.com/faq/faq.html#faq.programming.msvs-mingw>

Regards,
        Jan Nijtmans

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]