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]

Re: Getting started with GCJ


Hello all,

Thanks again for all your help, I am now able to compile my old program,
at least into object files. The question that I have now is more on a
"project management" level, and linking. I did look at a couple of other
projects to see how something like this might work, but none of the
packages I looked at (from the 'done with gcj' page) used packages in a
similar fashion.

My program (a PostScript-like interpreter) uses a couple of packages
that differ only in their base package name, and the implementation of
what each object does (ie, the names of the classes themselves are the
same.

So, from this, how would I be able to compile these objects into the
same binary? Would this require a means of storing all the generated *.o
files in a directory structure (similar to the package tree), and then
linking them all together in the final stage?

(PS, as it turns out the reason that I was getting the error that I
previously mentioned [mutually dependant classes] was due to my using
'javac' (really kaffe) as the compiler to produce *.class files, I have
since found that 'jikes' does a much better job at compiling, it also
will compile any dependancies, which 'kaffe' does not do for you. Does
this sound correct? Everything compiles with 'gcj', I just need to
figure out the linking.)

Thanks again,

Mike


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