This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: incorrect? link order for mingw gcj


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]