| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Fri, 12 Nov 1999 14:39:46 -0500 |
| From: | John Fralinger <fralinjh AT ei DOT dupont DOT com> |
| Subject: | Tools for JNI |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Message-Id: | <023001bf2d45$acdea910$9a5c37c0@ei.dupont.com> |
| MIME-version: | 1.0 |
| X-MIMEOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
| X-Mailer: | Microsoft Outlook Express 5.00.2314.1300 |
| X-Priority: | 3 |
| X-MSMail-priority: | Normal |
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 AT 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 AT 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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |