This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newbie linker question


Hi!

I installed gcc 3.1 for Redhat 7.3 from their rpms. 

I have the classpath set correctly and HelloWorld compiles and execute
okay. 

But when I try to compile a java class referring to other java classes
in the same directory I get a linker error: 

gcj3 --main=package.Main -o Main Main.java

gives me "Undefined reference to package::Utils.class"

What am I missing?

TIA


                                    myriam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]