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

Help getting started - compiler errors

Tags: None
(comma "," separated)
gbruno
Registered Member
Posts
2
Karma
0
Hi,
I've followed the Getting Started instructions and included the header files in my C++ project in Visual Studion 2015 but when I #include "Eigen/Dense" and try to compile I get a huge number of errors as below. Any suggestions would be much appreciated.

Code: Select all
Severity   Code   Description   Project   File   Line   Suppression State
Error   C2039   '=': is not a member of 'Eigen::Transform<Scalar,Dim,Mode,Options>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Transform.h   963   
Error   C2039   '=': is not a member of 'Eigen::Transform<Scalar,Dim,Mode,Options>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Transform.h   980   
Error   C2039   '=': is not a member of 'Eigen::Transform<Scalar,Dim,Mode,Options>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Transform.h   990   
Error   C2039   '*': is not a member of 'Eigen::Translation<_Scalar,_Dim>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Translation.h   188   
Error   C2039   '*': is not a member of 'Eigen::Translation<_Scalar,_Dim>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Translation.h   202   
Error   C2039   '*': is not a member of 'Eigen::Transform<Scalar,Dim,Mode,Options>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Transform.h   971   
Error   C2039   '*': is not a member of 'Eigen::Transform<Scalar,Dim,Mode,Options>'   WINFAP-FEH   e:\projects\winfap\code\winfap\eigen\src\Geometry\Transform.h   999   
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Make sure you are not including conflicting other header files or that you are using weird compiler flags. Also, which Eigen version are you using?
gbruno
Registered Member
Posts
2
Karma
0
I'm using Eigen 3.2.8 and I am trying to add it to a legacy MFC project which I have just inherited, the command compiler flags are:

Code: Select all
/Yc"stdafx.h" /FR"Debug\" /GS /analyze- /W3 /Zc:wchar_t /Gm- /Od /Fd".\Debug/" /Zc:inline /fp:precise /D "WIN32" /D "_DEBUG" /D "NO_WARN_MBCS_MFC_DEPRECATION" /D "_WINDOWS" /D "WINVER=0x0501" /D "_ENV_AGENCY" /D "_VC80_UPGRADE=0x0600" /D "_USING_V110_SDK71_" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /GR /Gd /Oy- /MTd /Fa".\Debug/" /EHsc /nologo /Fo".\Debug/" 


Bookmarks



Who is online

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