gcj undefined reference to error
I have this error when trying to compile this:
//Libreta.java file.
import aniky.Vector;
public class Libreta {
public static void main(String[] args) {
new Vector();
}
}
--------------------------------------------------------------------
//other file Vector.class
package aniky;
public class Vector {
public Vector() {
System.out.println("euieuior");
}
}
//compiled to .class file: gcj -C Vector.java
-----------------------------------------------------------------
when: gcj --main=Libreta Libreta.java -o lib
It complains with undefined reference to Vector etc.
If only import the file no complains. If the import is from the default library no complains.
Is a very simple test, but i dont know what i am doing wrong. I have the gcj that comes with sw 12. version 4.something
|