Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


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.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.