On 05/01/2017 05:09 PM, Luke Benes wrote:
/core/workdir/CxxObject/tools/source/generic/fract.o: In function 
`Fraction::operator*=(Fraction const&)':
/core/tools/source/generic/fract.cxx:(.text+0x695): undefined reference to 
`__mulodi4'
/core/tools/source/generic/fract.cxx:(.text+0x70a): undefined reference to 
`__mulodi4'

I assume the reference to __mulodi4 stems from

#elif (defined __GNUC__ && __GNUC__ >= 5) || 
(__has_builtin(__builtin_mul_overflow))

template<typename T> inline bool checked_multiply(T a, T b, T& result)
{
    return __builtin_mul_overflow(a, b, &result);
}

#else

in include/o3tl/safeint.hxx. Whatever the trouble with your toolchain there, if you cannot get it solved one option would be to tweak the #elif so that you use the #else fallback implementation of checked_multiply instead.
_______________________________________________
LibreOffice mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to