This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Problems with Mohans JVM example
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 07 Nov 2003 16:16:44 +0100
- Subject: Problems with Mohans JVM example
- Organization: Zylin AS
In Mohans build there is a JVMTest, but I can't get it to compile.
Has this problem been resolved?
Still happens w/GCC 3.3 and GCC 3.4 when I tested.
This was discussed a while back:
http://gcc.gnu.org/ml/java/2003-03/msg00387.html
C:\thisiscool-gcc\examples\JVMTest>gcj -c -fjni Prog.java -o prog.o
C:\thisiscool-gcc\examples\JVMTest>gcc -c
-Ic:\thisiscool-gcc\gcc-3.3\include invoke.c -o invoke.o
C:\thisiscool-gcc\examples\JVMTest>gcj -o prog.exe prog.o invoke.o
invoke.o(.text+0xc2):invoke.c: undefined reference to
`_imp__JNI_GetDefaultJavaV
MInitArgs@4'
invoke.o(.text+0xe0):invoke.c: undefined reference to
`_imp__JNI_CreateJavaVM@12
'