Can't build simple program
Mark K. Gardner
mkgardne@rtsl3.cs.uiuc.edu
Thu Aug 12 06:52:00 GMT 1999
I built the simple "Hello World" program as per the instructions on
< http://sourceware.cygnus.com/java/gcj.html >. Now I am trying to build
a slightly more complex program and I get a link error which doesn't
make much sense to me. What is `_CL_8HeapTest' and how do I make sure
it exists? (The program runs just fine with JAVAC and compiles just
fine with TOBA.) Any help illuminating my understanding would be
greatly appreciated.
Mark
--
Mark K. Gardner (mkgardne@cs.uiuc.edu)
University of Illinois at Urbana-Champaign
Real-Time Systems Laboratory
--
@ gcj -O '--main=HeapTest' -o HeapTest HeapTest.java ../../../../mkg/utility/Collator.java ../../../../mkg/adt/container/Heap.java ../../../../mkg/utility/CharacterCollator.java
/tmp/ccY23i55.o: In function `main':
/tmp/ccY23i55.o(.text+0x12): undefined reference to `_CL_8HeapTest'
collect2: ld returned 1 exit status
More information about the Java
mailing list