Does not compile on Mac OS with gcc 4.2.1
Until this issue is fixed use the LLVM compiler which comes with Xcode. To use it:
-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
This is the error message:
Sparse/../MatrixBase.h: In member function ‘IDX_TYPE MathLib::CRSMatrix<FP_TYPE, IDX_TYPE>::getNNZ() const’:
Sparse/../MatrixBase.h:57: error: object missing in reference to ‘MathLib::MatrixBase::_n_rows’
Sparse/CRSMatrix.h:74: error: from this location
It seems to be some error when using templates.
On all other tested gcc versions and platforms it works.