This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Newbie : How to compile
- To: java at gcc dot gnu dot org
- Subject: Newbie : How to compile
- From: Martín Pérez Mariñán <perez_martin at terra dot es>
- Date: 23 Jun 2001 15:36:44 -0400
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 :)