This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Tools for JNI
- To: cygwin at sourceware dot cygnus dot com
- Subject: Tools for JNI
- From: John Fralinger <fralinjh at ei dot dupont dot com>
- Date: Fri, 12 Nov 1999 14:39:46 -0500
Is the following broken example just an oversight or has
JNI been completely abandoned for Cygwin?
I prefer to use the tools that are included with the CD...
When making Mumit's HelloWorld example I get the following
with the V1.0 CD loaded.
gcc -c -DBUILDING_DLL=1 -D_DLL=1 -I. -Ic:/jdk1.1.7B/include -Ic:/jdk1.1.7B
/inc
lude/win32 -g -Wall -O2 -o HelloWorldImp.o HelloWorldImp.c
dllwrap --output-def hello.def --add-stdcall-alias --driver-name gcc -o
hello.
dll \
HelloWorldImp.o -Wl,-e,__cygwin_noncygwin_dll_entry@12 -s
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
/usr/lib/gcc-lib/i686-cygwin/2.9-cygwin-990830/../../../../i686-cygwin/lib/l
ibcy
gwin.a(libcmain.o)(.text+0x66):libcmain.cc: undefined reference to
`WinMain@16'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [hello.dll] Error 1
John Fralinger
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com