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

errors when compiling a code using <Eigen/Core>

Tags: None
(comma "," separated)
adibiton
Registered Member
Posts
3
Karma
0
Hi,
I tried to use your code, so I could do some algebric operations on matrices.
I included <Eigen/Core> but a lot of errors appeared.

here are some of them:

Error 44 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\win7\desktop\eigen-eigen-1306d75b4a21\eigen\src\core\productbase.h 183 1 AdiAdi

Error 45 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\win7\desktop\eigen-eigen-1306d75b4a21\eigen\src\core\productbase.h 183 1 AdiAdi

Error 41 error C3855: 'Eigen::internal::nested': template parameter 'PlainObject' is incompatible with the declaration c:\users\win7\desktop\eigen-eigen-1306d75b4a21\eigen\src\core\productbase.h 184 1 AdiAdi

etc.

I don't even know how to start resolving these errors..
can you help me,please?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
What's you compiler? version? system? compilation flags?
adibiton
Registered Member
Posts
3
Karma
0
I'm not sure I know what you mean..but I use visual studio.
did I answer your question?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
It's working well here, so please specify the the versions of visual studio and Eigen. Please, also show the complete code example you are trying to compile. Maybe you are including bad headers before including Eigen. Or perhaps you are using weird compilation flags.
adibiton
Registered Member
Posts
3
Karma
0
I use visual Studio 2010 and I downloaded Eigen 3.2.2 release. The errors started when I included <Eigen/Core>, not before.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Please provides a self-contained example as everything is working well for us and other VS2010 users.


Bookmarks



Who is online

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