This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Eigen with Android error: 'std::log1p' has not been declared

Tags: None
(comma "," separated)
alexanderc
Registered Member
Posts
6
Karma
0
Hello ,

I made a simple app using Eigen inside Android project but it fails with the error below. It seems it is related to the Android std library .
Any ideas how this problem can be solved ?

Code: Select all
In file included from /home/apps/eigen/Eigen/Core:301:0,
                 from /home/apps/eigen/Eigen/Dense:1,
                 from jni/src/main.cpp:6:
/home/apps/eigen/Eigen/src/Core/MathFunctions.h: In static member function 'static Scalar Eigen::internal::atanh2_impl<Scalar>::run(const Scalar&, const Scalar&)':
/home/apps/eigen/Eigen/src/Core/MathFunctions.h:357:18: error: 'std::log1p' has not been declared
       using std::log1p;
                  ^
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
It seems that you enabled C++11, so make sure that you are using a C++11 std library.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]