Newbie : How to compile

Martín Pérez Mariñán perez_martin@terra.es
Sat Jun 23 06:37:00 GMT 2001


Hi, I'm trying gcj with some sources I'd make days ago, but when I
compiled them it seems like they doesn't find the object files, I'll
describe my problem.

I have a couple of files Simbolo.java, and NoTerminal.java. This are
simple classes, and compile without any problem.

I also have another class Cadena.java, that uses Simbolo.java and
NoTerminal.java. When I try to compile this file, it seems that it
doesn't find the NoTerminal.o and Simbolo.o files.

I put this command line :

gcj -c Simbolo.java NoTerminal.java
(no problem, and Simbolo.o and NoTerminal.o are created)

Then I put this :

gcj -c Cadena.java

Cadena.java:48: Type `Simbolo' not found in the declaration of the local
variable `s'.
                Simbolo s = ((Simbolo)simbolos.elementAt(i));
                ^
Cadena.java:86: Type `NoTerminal' not found in the declaration of the
return type of method `getNoTerminalIzquierdo'.
  public NoTerminal getNoTerminalIzquierdo() {
         ^
2 errors

:(

Any help ? I know that this error has to be a fool thing, but i'm very
newbie, and any help would be appreciated :)

Thanks, and also excuse my English :)





More information about the Java mailing list