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

Eigen won't compile under Visual Studio 2008 Professional

Tags: None
(comma "," separated)
liangc
Registered Member
Posts
2
Karma
0
I am programming with C++/CLI on Visual Studio 2008. Before adding the directory of Eigen, my program works well, but after I have added the directory and added only one line in a header file:
#include <Eigen/Core>
then the compilation fails, the errors are:
1>d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(389) : error C2039: '()' : is not a member of 'System::Object'
1> c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::Object'
1> d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(393) : see reference to class template instantiation 'Eigen::internal::has_nullary_operator<T,IndexType>' being compiled
1>d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(398) : error C2039: '()' : is not a member of 'System::Object'
1> c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::Object'
1> d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(402) : see reference to class template instantiation 'Eigen::internal::has_unary_operator<T,IndexType>' being compiled
1>d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(407) : error C2039: '()' : is not a member of 'System::Object'
1> c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::Object'
1> d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/util/Meta.h(411) : see reference to class template instantiation 'Eigen::internal::has_binary_operator<T,IndexType>' being compiled
1>d:\setup\eigen-eigen-26667be4f70b\eigen\src/Core/arch/CUDA/Half.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

I have researched the errors by google and this forum, still no luck, any help would be appreciated. BTW, I am using the the newest version of Eigen.

Thank you.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
liangc
Registered Member
Posts
2
Karma
0
@ggael

thank you, problem solved.


Bookmarks



Who is online

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