#error: there are no arguments to 'x’ that depend on a template parameter

4 messages · Page 1 of 1 (latest)

old jackal
#

I am trying to build my catkin enviroment. i have been trying to solve the problem but i could not.

The error:

/usr/local/include/ITK-5.2/itkeigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h: In static member function ‘static bool Eigen::internal::direct_selfadjoint_eigenvalues<SolverType, 3, false>::extract_kernel(Eigen::internal::direct_selfadjoint_eigenvalues<SolverType, 3, false>::MatrixType&, Eigen::Ref<typename SolverType::RealVectorType>, Eigen::Ref<typename SolverType::RealVectorType>)’:
/usr/local/include/ITK-5.2/itkeigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:608:5: error: there are no arguments to ‘EIGEN_USING_STD_MATH’ that depend on a template parameter, so a declaration of ‘EIGEN_USING_STD_MATH’ must be available [-fpermissive]
  608 |     EIGEN_USING_STD_MATH(sqrt)

Part of the code that gives the error

static inline void computeRoots(const MatrixType& m, VectorType& roots)
  {
    EIGEN_USING_STD_MATH(sqrt)
    EIGEN_USING_STD_MATH(atan2)
    EIGEN_USING_STD_MATH(cos)
    EIGEN_USING_STD_MATH(sin)
    const Scalar s_inv3 = Scalar(1)/Scalar(3);
    const Scalar s_sqrt3 = sqrt(Scalar(3));

What can be the solution for it? Thank you

I am trying to build successfully but still unable

#1013107104678162544

azure riverBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

quartz vector
#

anyhow, it's a build issue