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: Errors when compiling libswt.a under winxp


>>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/




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