[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] making use of the math libs and m68020-60...



m0n0 wrote:
I was trying to compile netsurf with the -m68020-60 flag, but it results in
many _math_function_xy multiple definition errors during linking...

You probably compile with -std=c99.

There was a bug in my gcc-4.5.2-mint-20110128 patch (use gcc --version to see which one you use). I fixed that problem in subsequent patches.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

As a workaround, you can recompile netsurf and any library using -std=c99 (ex: libtiff) with -DNO_INLINE_MATH.

Also, be sure that *all* the libs you are using have been compiled with the same compiler, because of the change about the register to return floats.

--
Vincent Rivière