This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Tools for JNI


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


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