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]

how to compile multi classed?


I have three source *.java files:
2 are classes that are called from the first class (containing main)
How are one to compile this?

gcj --main=First First.java -o First.o
undefined reference to Second et.c.

gcj -C Second.java
gcj -C Third.java
gcj --main=First First.java -o First.o
same

when adding package to Second.java and Third.java I get an error that 
it is read for the second time.

PLEASE HELP!!!
Niklas Fondberg
System Developer I3 Micro Technology

p.s. I will send source if you want...


-------------------------------------------------

Niklas Fondberg              I3 Micro Technology
niklas.fondberg@i3micro.org


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