undefined symbol error message

Tom Tromey tromey@redhat.com
Wed Jan 23 11:38:00 GMT 2002


>>>>> ">" == myriam <mabramso@gmu.edu> writes:

>> Could you please point out what I'm missing? Tdlvq.java has a
>> public static void main (String [] args) method. 

>> make -k all
>> LD_LIBRARY_PATH=/opt/gcc-3.0.3/lib /opt/gcc-3.0.3/bin/gcj --main=Tdlvq --CLASSPATH=/opt/gcc-3.0.3/share:/rhome/5510/abramson/school:. -o tdlvq Tdlvq.java Slvq.java Match.java Distance.java Task.java MountainCar.java Pareto.java Softmax.java Euclidean.java CodeBook.java Utils.java Nearest.java Limits.java CartCentering.java ../gnu/getopt/Getopt.java 
>> Undefined			first referenced
>> symbol 			 in file
>> Tdlvq::class$ /tmp/ccAOJcih.o

Without more information it is hard to be sure.
It might be a bug in gcj. Or it might be a problem in your program.
Try compiling each .java file separately:
 gcj -c Tdlvq.java
 gcj -c Slvq.java
 [ ... ]
... and then link the .o files together as above.
Maybe that will help. At least it will make debugging the problem a
bit more tractable; if it still happens you can use `nm' to see what
is in Tdlvq.o; that might point out what is wrong.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /