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]
Other format: [Raw text]

Re: Compiling SWT+SwingWT


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/





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