This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
install gcj with mingw
- From: Stefan Deseke <s dot deseke at gmx dot de>
- To: java at gcc dot gnu dot org
- Date: Mon, 27 Oct 2003 06:32:29 +0100
- Subject: install gcj with mingw
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.