Problems with Mohans JVM example
Øyvind Harboe
oyvind.harboe@zylin.com
Fri Nov 7 15:16:00 GMT 2003
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
'
More information about the Java
mailing list