RE: Using cygwin and JAVA/JNI

2003-02-05 Thread Mike Bresnahan
I have been using Cygwin GCC 3.2 to build JNI DLLs that use without difficulty. I have done the following things: - put -mno-cygwin -D_REENTRANT -D_GNU_SOURCE -D__int64="long long" on the compiler command line - put -mno-cygwin -Wl,--add-stdcall-alias on the linker command line See the Cygwin F

Re: Using cygwin and JAVA/JNI

2003-01-27 Thread William S Fulton
Following up from recent emails about Java/JNI using Sun's JDK I'd thought I'd share my experiences. Up and until Cygwin-1.3.13 the test script below would compile and run as expected. The test produces a simple Java Native Interface (JNI) program which calls C code from a Java program using J

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread Randall R Schulz
Yow! What's the proper way to ward off the curse implied here? I may never be right again! Perhaps what's really afoot here is that as a Badger, my near-universal correctness is trumped by that of someone actually working on the Madison campus. At 08:27 2003-01-17, friedman_hill ernest j wro

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread gilles BOURGEOIS
thanks a lot, actually, with -Wl,--add-stdcall-alias to the gcc line, all worked fine. - Original Message - From: "friedman_hill ernest j" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 5:27 PM Subject: Re: Using cygwin and JAVA/JNI

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread friedman_hill ernest j
Randall is usually 100% right about everything, but here he's actually not. I haven't done it in a long time, but I've certainly written JNI libraries with cygwin -- and in fact, used some fairly cygwin specific features in doing so (my JNI library explicitly used dlopen() to open another library,

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread Igor Pechtchanski
Randall, Jim Kleckner, who posted the message I referred to, was apparently able to load a gcc-built DLL in the same manner as an MSVC-built one. This seems to indicate that the ABI is compatible, and the only problem was the function name mangling. It was mostly a speculation on my part to rela

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread Randall R Schulz
Igor, Could you clarify? Is my supposition not actually correct? That would be nice to know. Randall Schulz At 08:15 2003-01-17, Igor Pechtchanski wrote: Gilles, This may be related to the issue raised in this message: . Igor On Fri, 17

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread Igor Pechtchanski
Gilles, This may be related to the issue raised in this message: . Igor On Fri, 17 Jan 2003, Randall R Schulz wrote: > Gilles, > > I don't believe the ABI (application binary interface) used by the > Microsoft compilers is compatible wit

Re: Using cygwin and JAVA/JNI

2003-01-17 Thread Randall R Schulz
Gilles, I don't believe the ABI (application binary interface) used by the Microsoft compilers is compatible with that used by GCC and hence the Sun JVM, being compiled by the Microsoft tools, cannot access GCC-compiled libraries via JNI. Randall Schulz At 06:41 2003-01-17, gilles BOURGEOIS