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]

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


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