This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: incorrect? link order for mingw gcj
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: aking at dreammechanics dot com
- Cc: java at gcc dot gnu dot org
- Date: Fri, 05 Apr 2002 13:02:26 +1200
- Subject: Re: incorrect? link order for mingw gcj
- References: <20020404083016.A4164@dreammechanics.com>
aking@dreammechanics.com wrote:
>aking@nanostorm:~/gcj-test$ i686-pc-mingw32-gcj --main=GCJTest -o /tmp/gcjtest.exe GCJTest.java
>/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libgcj.a(exception.o): In function `abort':
>/home/aking/compile/mingw-gcj/bin/i686-pc-mingw32/libjava/../../../gcc/libjava/exception.cc:27: multiple definition of `abort'
>/home/aking/mingw-gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libmsvcrt.a(ds00510.o)(.text+0x0): first defined here
>
>However, if I add in the libraries '-lgcj -lmsvcrt', it compiles and runs fine:
>
The file libgcj.spec (which is generated from libgcj.spec.in) specifies
what arguments gcj passes to the linker. You can probibly at least work
around the problem in there.
regards
Bryce.