Apache OpenOffice (AOO) Bugzilla – Issue 17612
IRIX: std::sqrt() is ambigous apparently.
Last modified: 2004-02-05 12:40:03 UTC
Well, MipsPro is nothing if not pedantic! CC -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc -I. -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/external -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/unxirxm3/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/res -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc/Xp31 -I/usr/java2/include -I/usr/java2/include/irix -I/usr/java2/include/native_threads/include -I. -I../../res -I. -O2 -LANG:ansi-for-init-scope=OFF -LANG:std -LANG:libc_in_namespace_std=ON -LANG:exceptions=OFF -KPIC -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730 -D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR -DSGI_STL -D__STL_THROW_RANGE_ERRORS -D__DMAKE -DUNIX -DCPPU_ENV=MipsPro -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DUSE_BUILTIN_RASTERIZER -DENABLE_CTL -DSHAREDLIB -D_DLL_ -DMULTITHREAD -w -o ../../unxirxm3.pro/slo/bitmap4.o /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/vcl/source/gdi/bitmap4.cxx cc-1282 CC: ERROR File = /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/vcl/source/gdi/bitmap4.cxx, Line = 511 More than one instance of overloaded function "sqrt" matches the argument list. Function symbol function "std::sqrt(long double)" is ambiguous by inheritance. Function symbol function "std::sqrt(float)" is ambiguous by inheritance. Function symbol function "std::sqrt(double)" is ambiguous by inheritance. The argument types are: (long). nSum1 = (long) sqrt( ( nSum1 * nSum1 + nSum2 * nSum2 ) ); I guessing I just cast and be on my way... whats appropriate tho? double? guess float should be big enough. For some reason the server I am building on is not letting me make diffs now.. *sigh*, still, two casts in this file, and away we go.
vcl/source/gdi/pdfwriter_impl.cxx - pow is ambiguous, adding (float) cast.
vcl/unx/source/app/saldisp.cxx - sqrt
Fixed on ooo11rc3. I choosed casts to double because this doesn't change the precision for the other platforms. Shouldn't matter anyway. Please reopen if more of this kind pops up.
source/helper/strhelper.cxx - pow likely to be more coming.
/svx/source/svdraw/impgrfll.cxx - cos, sin
xmloff/source/core/xmluconv.cxx - log10()
sc/source/core/tool/interpr2.cxx - pow
scaddins/source/analysis/bessel.cxx - pow
set target milestone to 1.1.1
commited in ooo111fix1 - please reopen if there are more
mark as verified.
closing issue, feel free to reopen in case a problem is left.