diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-19 12:58:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-19 13:02:42 +0300 |
commit | 07d7be1ac8be39c9a4333c7166600180b8dd2475 (patch) | |
tree | 6e9a6ed73dcb3ce78ff48cf8a4c9dfbfbbbb4dea /sc | |
parent | 9b966d0dc882a40bc3c3fb450c0da0e6bb5ae20b (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/scmatrix.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index cf399c9686c7..cc2106d9c432 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 |