This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling SWT+SwingWT
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: robin at rawsontetley dot ath dot cx
- Cc: java at gcc dot gnu dot org
- Date: Tue, 20 Apr 2004 12:19:37 -0500
- Subject: Re: Compiling SWT+SwingWT
- Reply-to: gnustuff at thisiscool dot com
Hi Rob,
>I seem to be able to compile SWT and SwingWT to two separate shared
>libraries ok (swt.so and swingwt.so), however as soon as I link a
>program against them, I get a whole raft of "undefined reference to
>org::eclipse..." errors for classes in the SWT library.
I don't have time to look at this in detail at the moment, but just skimming this,
it seems like you need to rename the .so files at minimum. When libgcj
tries to load classes from a package called w.x.y.z from an external shared
library, it first tries lib-w-x-y-z.so, then failing this, lib-w-x-y.so, then lib-w-x.so,
and so on.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/