Confused about jar/lib usage
Fx Mx
lard_power@yahoo.com
Tue Feb 3 21:26:00 GMT 2004
I'm not actually interested in compiling libgcj.jar,
I'm interested in compiling another jar file. But
thought that libgcj.jar should work if any... so that
I could use this example to make sure I understood how
it worked.
thanks,
Fx
--- Michael Koch <konqueror@gmx.de> wrote:
> On Tue, Feb 03, 2004 at 12:12:36PM -0800, Fx Mx
> wrote:
> > > With the current gcj, the linking model is
> basically
> > C's.
> > > So, if your program references a class, you must
> > have a gcj-compiled
> > > version of that class available at link time.
> If
> > you compile a .jar
> > > to a shared library, as is the most common
> approach,
> > then you must
> > > have the resulting .so available at runtime.
> You
> > can link
> > > statically, but that is tricky with gcj; the
> list
> > archives are full
> > > of various gotchas and workarounds.
> >
> > This clarifies things, but i'm having trouble
> > generating the said library files. I'm interested
> in
> > compiling them for a scientific library, but even
> when
> > I tried to compile libgcj.jar, I get the following
> > messages:
> > [~]# /usr/local/bin/gcj libgcj-3.3.2.jar -o
> > libgcj-3.3.2.so
>> Why do you want to do this at all ? libgcj-3.3.2.so
> should be already
> installed on your system and is automatically linked
> when you compile
> with gcj-3.3.2. There is really no really no reason
> to do this yourself.
>>> Michael
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
More information about the Java
mailing list