not to be able to run a swt example

newtogcj teyakkuz_@windowslive.com
Wed May 7 08:21:00 GMT 2008


I have only been running without --shared and now I can see the HelloWorld:)
Now I am going to research cross-compile subject,because my main object is 
running my application on an embedded board.If you suggest any source,I'll
be glad 

newtogcj wrote:
> 
> Hi, 
> I'm new to gcj. 
> I use mingw 3.4(eclipse supported). 
> I use swt in my applicaiton,too. 
> I have compiled swt.jar and got .o file after running the line below: 
> gcj -fjni -c swt.jar (I have compiled using -findirect-dispatch first,then
> this and it has gived me object file, too.) 
> 
> And I have gotten .o file of my swt application running the command line
> below: 
> gcj --classpath=swt.jar -c HelloSWT.java 
> 
> And got exe after running below: 
> gcj --shared --main=HelloSWT -o test.exe HelloSWT.o swt.o 
> 
> But at last,when I have double-clicked the exe file,I have been getting
> error which has been giving the error as no being a Win32 applicaiton :( 
> 
> I suppose it's about dll and using -lswt but I ma not sure how I must use
> these. 
> If you help,I'll be very happy! 
> Thanks.
> 
:jumping:
-- 
View this message in context: http://www.nabble.com/not-to-be-able-to-run-a-swt-example-tp17099716p17099831.html
Sent from the gcc - java mailing list archive at Nabble.com.



More information about the Java mailing list