This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libgcj/9019: Compiling included jar into dll fails
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: <gcc-gnats at gcc dot gnu dot org>,<java-prs at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>
- Date: Tue, 18 Feb 2003 22:04:48 +0100
- Subject: Re: libgcj/9019: Compiling included jar into dll fails
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9019
I tried this gcj 3.3 and the error message is gone(replaced with a different one).
C:\temp>gcj -fjni -shared -o swt.dll modified_swt.jar
org/eclipse/swt/graphics/Image.java: In class `org.eclipse.swt.graphics.Image':
org/eclipse/swt/graphics/Image.java: In constructor `(org.eclipse.swt.graphics.D
... stuff deleted ....
c:\gcc-3.3\bin\..\lib\gcc-lib\mingw32\3.3\..\..\../libgcj.a(win32_threads.o)(.te
xt+0x82c):win32_threads.c: multiple definition of `DllMain@12'
c:\gcc-3.3\bin\..\lib\gcc-lib\mingw32\3.3\..\..\..\..\mingw32\lib/libmingw32.a(d
llmain.o)(.text+0x0):dllmain.c: first defined here
C:\temp>gcj -v
Reading specs from c:\gcc-3.3\bin\..\lib\gcc-lib\mingw32\3.3\specs
Reading specs from c:\gcc-3.3\bin\..\lib\gcc-lib\mingw32\3.3\..\..\..\libgcj.spe
c
rename spec lib to liborig
Configured with: /datal/gcc/gcc/configure --prefix=/datal/gcc/w32gcc/gcc --build
=i686-pc-linux-gnu --host=mingw32 --target=mingw32 --enable-languages=c,c++,java
--with-gcc --with-gnu-as --with-gnu-ld --with-as=/datal/gcc/xgcc/bin/mingw32-as
--with-ld=/datal/gcc/xgcc/bin/mingw32-ld --enable-threads=win32 --disable-nls -
-disable-win32-registry --disable-shared --disable-debug --disable-multilib --wi
thout-newlib --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boe
hm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
Thread model: win32
gcc version 3.3 20030215 (prerelease)