This is the mail archive of the java-discuss@sources.redhat.com 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]

Re: Compilation of 2-classes program. Help!


Przemyslaw Pokrywka wrote:
> $ gcj --main=Raport -v -o raport Raport.java

"Easy" way is to combine all .java files in one gcj command:

gcj --main=Raport -v -o raport Raport.java Info.java

After you have more than a few sources, you may prefer building static (.a) or
shared (.so) libs.

I don't know why you are getting the compiler error though.  That's not a
linkage problem.

--
Jeff Sturm
jeff.sturm@appnet.com

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