This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problems using libswt.a and multiple jars
- From: Jörg Maisenbacher <joerg at maisenbachers dot de>
- To: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 13:55:55 +0200
- Subject: Re: Problems using libswt.a and multiple jars
- References: <002001c367d5$4d8cbd70$73dea8c0@lair>
Øyvind Harboe wrote:
I would very much like to use libswt.a, but there appears
to be a problem as soon as I compile in more than one other
.jar. This manifests itself as a segmentation fault in this
case, and in others I get oodles of error messages that
the SWT stuff can't be found.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12006
Øyvind
I do this on windows, with the package mentioned in the bug-report
without problems, maybe you could try to compile each jar file to an
object file alone, and then linke them together, this is how I do it,
and it works fine with 6 jar-files + libswt.a.
eg:
gcj -c -Os jakarta-regexp-1.2.jar
gcj --CLASSPATH=\thisiscool-gcc\swt\win32\lib\swt.jar \
-c -Os HelloSWT.java
gcj --main=HelloSWT -s -o HellOSWT.exe *.o \
\thisiscool-gcc\swt\win32\lib\libswt.a
joerg
--
Jörg Maisenbacher
"There are only 10 types of people in the world:
Those who understand binary and those who don't."