Errors when compiling libswt.a under winxp
Mohan Embar
gnustuff@thisiscool.com
Mon Dec 8 16:51:00 GMT 2003
>>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/
More information about the Java
mailing list