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

Cannot understand if this is circular dependency or Clang

Tags: None
(comma "," separated)
adalgrande
Registered Member
Posts
2
Karma
0
Hi,

I am on Clang/OS X Yosemite and my project was using Eigen fine. Then I introduced an external library that also uses Eigen and I now have this compilation error:

Code: Select all
/usr/local/include/Eigen3/Eigen/src/Geometry/Quaternion.h:516:13: Implicit instantiation of undefined template 'Eigen::internal::quaternionbase_assign_impl<Eigen::Matrix<double, 3, 1, 0, 3, 1>, 3, 1>'


This is seems to come from a declaration in the library:

Code: Select all
#include <Eigen/Eigen>


And this is the code where I use the Quaternion:

Code: Select all
Eigen::Quaternion<double> q, q_wv, q_ic, q_cv;
q_cv = _poseHandler->GetAttitudeMeasurement();  // problem here


First of all, since that include takes into account Core and Geometry, I do not think it's a header missing. Then I do not understand the "undefined template" error, because the internal template is declared in the same header if you go look into it. So I am left with a question: what is wrong?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
please, include respective links when cross-posting: http://stackoverflow.com/questions/2709 ... y-or-clang


Bookmarks



Who is online

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