undefined reference

Tom Tromey tromey@redhat.com
Wed Jun 23 02:15:00 GMT 2004


>>>>> "Marco" ==   <marco@mherrn.de> writes:

>> $ gcj -I. -I/usr/share/java/log4j-1.2.jar Test.java -o Test.o

Marco> /usr/lib/gcc-lib/i486-linux/3.3.4/../../../crt1.o(.text+0x18): In
Marco> function `_start':
Marco>  [ ... ]

You're trying to link again here.  Try the above command but add `-c'.

Marco> But I also thought that gcj could links agains class files.

Current gcj releases require that all dependencies of a compiled class
also be compiled.  You can load bytecode at runtime, but you can't
currently "link" against it.

Tom



More information about the Java mailing list