Loading gcc-compiled DLL with Java (JNI) crashes when using newer (>1.5.5) cygwin1.dll

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Sat Apr 3 16:45:00 GMT 2004


On Sat, Apr 03, 2004 at 06:32:16AM -0300, Fr?d?ric L. W. Meunier wrote:
>On Fri, 2 Apr 2004, Hans Horn wrote:
>
>> this was something I did try out as well. However, the dll produced with
>> "-no-cygwin" was just as "bad" as before.
>> Then I recalled faintly reading some discussion a while back, that
>> "mingw-gcc != gcc -no-cygwin" (don't remember details, though).
>
>-no-cygwin ? I thought it was -mno-cygwin. Or are both the same
>thing ?

The correct switch is -mno-cygwin.  -mno-cygwin should be equivalent to
building with the mingw compiler unless you try to include cygwin header
files or libraries, which is a common mistake.
--
Christopher Faylor                    spammer? -> aaaspammer@sourceware.org
Cygwin Co-Project Leader                          hank@duffek.org
TimeSys, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list