Problems using libswt.a and multiple jars
Jörg Maisenbacher
joerg@maisenbachers.de
Thu Aug 21 11:56:00 GMT 2003
Ã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."
More information about the Java
mailing list