This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
compiling a SWT-gui with gcj on windows
- From: Jörg Maisenbacher <joerg at maisenbachers dot de>
- To: java at gcc dot gnu dot org
- Date: Wed, 23 Jul 2003 23:45:45 +0200
- Subject: compiling a SWT-gui with gcj on windows
Hy,
We are working on a new gui for mldonkey (you know, the p2p-app for
linux). We do this in Java and SWT, to avoid the peoples fear of slow
Java-software, we want to complile it with gcj.
Here is, where my problem starts. I only get errors when compiling the
libraries we use. (boot.jar jface.jar runtime.jar swt.jar trove.jar)
As i'm not very experienced with gcc and its command-line switches, i
don't know wether it is my fault, or a bug in the windows-port. Perhaps
you can help me (or at least give me a hint) how to compile a more
complex piece (which means quite a lot of classes and external .jar as
libs) of software using gcj.
I hope you can help me and our project.
greets
Joerg Maisenbacher
PS, i put an example here: (using the gcc 3.4 package from
http://www.thisiscool.com/gcc33_mingw.htm )
for example:
> gcj -fjni --CLASSPATH=%CP% -c jface.jar
(where %CP% =
xmlParserAPIs.jar;
xercesImpl.jar; boot.jar;
runtime.jar; swt.jar; jface.jar)
results in:
,---------
(..lots of lines go here...)
org/eclipse/jface/window/ApplicationWindow.java:443: warning:
unreachable bytecode from 313 to before 316
org/eclipse/jface/window/ApplicationWindow.java:422: warning:
unreachable bytecode from 477 to before 480
C:\DOKUME~1\joerg\LOKALE~1\Temp/ccg9aaaa.s: Assembler messages:
C:\DOKUME~1\joerg\LOKALE~1\Temp/ccg9aaaa.s:290763: Error: symbol
`__GLOBAL__I__ZN3org7eclipse5jface6action19AbstractGroupMarkerC1Ev' is
already defined
`---------
--
joerg maisenbacher <joerg@maisenbachers.de>
"There are only 10 types of people in the world:
Those who understand binary and those who don't."