[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Sat Oct 19 03:03:50 PDT 2013
sc/source/core/tool/scmatrix.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 07d7be1ac8be39c9a4333c7166600180b8dd2475
Author: Tor Lillqvist <tml at collabora.com>
Date: Sat Oct 19 12:58:26 2013 +0300
Need also a definition of the maComp static member variable
Otherwise Clang complains (on all platforms): "variable '<anonymous
namespace>::CompareMatrixElemFunc<<anonymous>::ElemGreaterZero>::maComp'
has internal linkage but is not defined".
I guess this link-time error reported by one tinderbox that uses gcc
is also related: "relocation R_X86_64_PC32 against undefined symbol
`_ZN12_GLOBAL__N_121CompareMatrixElemFuncINS_13ElemEqualZeroEE6maCompE´
can not be used when making a shared object; recompile with
-fPIC". (That mangled name stands for "(anonymous namespace)::
CompareMatrixElemFunc<(anonymous namespace)::ElemEqualZero>::maComp".)
Change-Id: I05a341a55e5f57864a476b5d1614b0e73bc9f017
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index cf399c9..cc2106d 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -183,6 +183,9 @@ public:
}
};
+template<typename _Comp>
+_Comp CompareMatrixElemFunc<_Comp>::maComp;
+
}
class ScMatrixImpl
More information about the Libreoffice-commits
mailing list