internal compiler error: can't find class$

Michael Koch konqueror@gmx.de
Thu Sep 2 18:01:00 GMT 2004


Am Donnerstag, 2. September 2004 19:45 schrieb Thomas Léauté:
> 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

You forgot to link simpleUI.o here. You can use this.

gcj-3.5 -o test main.o simpleUI.o


Michael



More information about the Java mailing list