GCJ Windows and SWT

JR Ruggentaler jr@mpv.com
Mon Sep 22 05:10:00 GMT 2003


I took Erik's suggestion and upgraded:
Reading specs from C:/GCJ/bin/../lib/gcc-lib/mingw32/3.3.1/specs
Reading specs from
C:/GCJ/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls
--enable
-languages=c,c++,f77,objc,ada,java --disable-win32-registry --disable-shared
--e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x
--enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchroniz
ation
Thread model: win32
gcc version 3.3.1 (mingw special 20030804-1)
When I tried rebuilding my app with the new compiler I started getting
'undefined references to ...' against the SWT library
(lib-org-eclipse-swt.a). I assumed I needed to compile SWT with the new
compiler. I tried compiling the SWT sources and I got compile errors like
the following:
C:\GCJ\SWT2.1.1\src>gcj -c org\eclipse\swt\custom\*.java
./org/eclipse/swt/custom/DisplayRenderer.java:66: error: Type `LineCache'
not fo
und in the declaration of the local variable `lineCache'.
 LineCache lineCache = parent.internalGetLineCache();
I fould an earlier email post describing this problem
(http://gcc.gnu.org/ml/java/2003-06/msg00003.html) but no resolution. Has
anyone successfully built SWT on Windows with GCJ 3.3.1? If yes can I have a
copy? Would SWT make a good test source base for GJC? Is there another GUI
toolkit someone would suggest for use with Windows/Unix/Mac OS 10 and GCJ?
J.R.
> -----Original Message-----
> From: Erik Poupaert [mailto:erik.poupaert@freestyler-toolkit.org]
> Sent: Sunday, September 21, 2003 3:44 PM
> To: jr@mpv.com
> Cc: java@gcc.gnu.org
> Subject: GCJ Windows and SWT
>>>> >>> examples that use a seperate thread to update the GUI
>> You'll find quite a few examples (snippets) at 
> http://www.eclipse.org. The ones I
> tried, work with GCJ too. By the way, when I update an SWT 
> GUI from a different
> thread, I usually use asyncExec (instead of syncExec) -- if 
> they idea is to proceed
> non-blockingly and in background.
>> >>> Reading specs from C:/GCJ/bin/../lib/gcc-lib/mingw32/3.2/specs
>> 3.3 addresses numerous issues that are still present in 3.2. 
> You should
> probably install 3.3 (separately).
>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /