JNI multiple String problem

Weiqi Gao weiqigao@networkusa.net
Wed Mar 12 21:33:00 GMT 2003


Nicholas Burton wrote:
> 
> I am having a problem with java native interface under Cygwin that I
> don't have under solaris.

The version of GCC that comes with the latest Cygwin setup.exe contains 
GCJ and libgcj, which contains its own Java compiler, JNI headers, and 
runtime libraries.

Try get around the GCJ stuff by using explicit -I, -L and -l command 
line options combined with the -mno-cygwin option:

$ gcc -mno-cygwin -c -I c:/j2sdk1.4.1_01/include -I \
c:/j2sdk1.4.1_01/include/win32 nativ.c

$ gcc -mno-cygwin -shared -L c:/j2sdk1.4.1_01/jre/bin -o cygnativ.dll 
native.o -lwhatever

--
Weiqi Gao
weiqigao@networkusa.net



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list