install gcj with mingw

Stefan Deseke s.deseke@gmx.de
Mon Oct 27 05:32:00 GMT 2003


Hi,
I tried to install gcj on windows.
I downloaded the binary distributions of gcc 3.2.3 and
gcj 3.3.1 from mingw.org and installed it.
Compiling with gcc and g++ works fine but when I try to
compile a java program with "gcj -o test.exe test.java"
I get the error:
C:\mingw\bin\..\lib\gcc-lib\mingw32\3.3.1\..\..\..\..\mingw32\bin\ld.exe: canno
t open crtbegin.o: No such file or directory

I solved that by copying the contents of the 3.3.1 folder to the 3.2.3 folder.
But it still won't compile.
No I get this error:

C:/mingw/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libmingw32.a(main.o)(.text+0
x97):main.c: undefined reference to `WinMain@16'
C:/mingw/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libgcj.a(natStackTrace.o)(.t
ext+0xdd):natStackTrace.cc: undefined reference to `_Unwind_FindEnclosingFunctio
n'


But the files libmingw32.a and libgcj.a exist and the symbols WinMain@16 and 
_Unwind_FindEnclosingFunction exist too.



More information about the Java mailing list