This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: internal compiler error: can't find class$
Le Sep 2, 2004, à 11:45 AM, Andrew Haley a écrit :
There is a ton of different things that might cause this.
Please let us know what commands you used to compile the files, and
exactly what versions of the tools you used.
Andrew.
OK; I have just re-implemented completely in java the class "coutUI"
(now called "simpleUI"), and now the error message comes up during the
linking phase:
/usr/bin/ld: Undefined symbols:
simpleUI::class$
simpleUI::simpleUI()
You can see that it does not find the constructor either.
I did the following:
gcj -C -classpath ./or124.jar:. *.java
gcjh simpleUI
g++-3.5 -c main.cpp
g++-3.5 -o test main.o -lgcj
(or124.jar is a package used by the BlueNode class)
g++-3.5 --version returns:
g++-3.5 (GCC) 3.5.0 20040613 (experimental)
This is a version I got from Gaurav Khanna, the author of the following
web page: http://hpc.sourceforge.net/ . The web page says: " recently
compiled using source code from the GNU CVS servers, tree-ssa
lno-branch".
Note that I also get the following error:
/usr/bin/ld: warning multiple definitions of symbol _sqrt
/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.5.0/../../../
libgcj.a(w_sqrt.o) definition of _sqrt in section (__TEXT,__text)
/usr/lib/libSystem.dylib(sqrt970.o) definition of _sqrt
Thomas
" We know what we think we know,
Just as we don't know what we want to know "
Oscar Wilde
The Picture of Dorian Gray