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]

Problems with Mohans JVM example


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
'





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