incorrect? link order for mingw gcj
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Thu Apr 4 17:10:00 GMT 2002
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.
More information about the Java
mailing list