This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Create Java VM from MingW GCJ?
- From: "Ranjit Mathew" <rmathew4lists at hotmail dot com>
- To: <gnustuff at thisiscool dot com>,"GCJ Java" <java at gcc dot gnu dot org>
- Date: Mon, 31 Mar 2003 15:17:43 +0530
- Subject: Re: Create Java VM from MingW GCJ?
- References: <4YTO52IHPM63XSP62A7651YRQDB2NH.3e8568e6@p733>
- Reply-to: "Ranjit Mathew" <rmathew at hotmail dot com>
> invoke.o(.text+0xc4):invoke.c: undefined reference to `_imp__JNI_GetDefaultJavaVMInitArgs at 4'
> invoke.o(.text+0xdd):invoke.c: undefined reference to `_imp__JNI_CreateJavaVM at 12'
This is quite likely due to the fact that these methods are
declared as JNIEXPORT (__declspec(dllexport) on Win32) and will not
be normally available if libgcj is not built as a DLL.
However, you can try the latest binutils snapshot for MinGW:
http://prdownloads.sourceforge.net/mingw/binutils-2.13.90-20030111-1.tar.gz
that includes the feature of auto-exporting from an EXE if
__declspec(dllexport) is used for functions.
This *should* resolve your problem.
Ranjit.