This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Can't build simple program


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

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