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

inverse: unresolved external symbol

Tags: None
(comma "," separated)
User avatar
Spooky
Registered Member
Posts
2
Karma
0
OS

inverse: unresolved external symbol

Wed Dec 02, 2009 12:35 pm
I have a weird problem in MSVC 2008. When I try to use the Matrix inverse function, I get an unresolved external symbol error:

Code: Select all
Error   error LNK2019: unresolved external symbol "public: class Eigen::Matrix<float,3,3,2,3,3> const __thiscall Eigen::MatrixBase<class Eigen::Block<class Eigen::Matrix<float,4,4,2,4,4>,3,3,1,32> >::inverse(void)const " (?inverse@?$MatrixBase@V?$Block@V?$Matrix@M$03$03$01$03$03@Eigen@@$02$02$00$0CA@@Eigen@@@Eigen@@QBE?BV?$Matrix@M$02$02$01$02$02@2@XZ) referenced in function "public: class Eigen::Matrix<float,4,4,2,4,4> const __thiscall Eigen::Transform<float,3>::inverse(enum Eigen::TransformTraits)const " (?inverse@?$Transform@M$02@Eigen@@QBE?BV?$Matrix@M$03$03$01$03$03@2@W4TransformTraits@2@@Z)
Code: Select all
Error   error LNK2019: unresolved external symbol "public: class Eigen::Matrix<float,4,4,2,4,4> const __thiscall Eigen::MatrixBase<class Eigen::Matrix<float,4,4,2,4,4> >::inverse(void)const " (?inverse@?$MatrixBase@V?$Matrix@M$03$03$01$03$03@Eigen@@@Eigen@@QBE?BV?$Matrix@M$03$03$01$03$03@2@XZ) referenced in function "public: class Eigen::Matrix<float,4,4,2,4,4> const __thiscall Eigen::Transform<float,3>::inverse(enum Eigen::TransformTraits)const " (?inverse@?$Transform@M$02@Eigen@@QBE?BV?$Matrix@M$03$03$01$03$03@2@W4TransformTraits@2@@Z)


Even in a completely new and empty project. All I do is:
Code: Select all
#include "Eigen/Geometry"

using namespace Eigen;

int main(int argc, char **argv)
{
   Transform3f m;
   m.inverse();
}

What am I doing wrong here?
User avatar
bjacob
Registered Member
Posts
658
Karma
3
See the documentation:
http://eigen.tuxfamily.org/dox/classEig ... 206933f4ce

There is a warning telling that you need to include LU:
Code: Select all
#include<Eigen/LU>

I agree that we could make that warning more prominent.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
Spooky
Registered Member
Posts
2
Karma
0
OS
Oooh, thank you very much. I did look at the inverse function in the documentation, however it seems I skimmed over the "Warning:" part :].


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]