This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Errors when compiling libswt.a under winxp
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>, "sontriste at virgilio dot it" <sontriste at virgilio dot it>
- Date: Mon, 08 Dec 2003 08:28:21 -0600
- Subject: Re: Errors when compiling libswt.a under winxp
- Reply-to: gnustuff at thisiscool dot com
>>Ok, before rebuild libswt I've compiled your HelloSWT example with your
>>libswt.a as
>>
>>gcj --classpath=./swt.jar --main=HelloSWT HelloSWT.java -L. -lswt
>>
>>also I have copied swt.jar, swt-win32-2133.dll and libswt.a under
>>HelloSWT directory.
>>When I execute the program it crash and the standard error output show
>>
>>Exception in thread "main" org.eclipse.swt.SWTException: Unsupported or
>>unrecognized format
>
>Please study build.bat in the HelloSWT samples directory.
Oops. Sorry about that. build.bat has been replaced by
the top-level Makefile. Please look at the HelloSWT target in
thisiscool-gcc/examples/Makefile. You can see that for image
loading, you need to explicitly link with a couple of .o files.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/