This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Create Java VM from MingW GCJ?


> 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.


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