This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: undefined reference
>>>>> "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