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

Build Errors in MSVC 2013

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

Build Errors in MSVC 2013

Fri Jul 15, 2016 7:37 pm
Hello!

I am trying to build Eigen 3.2.8 with MSVC. I am using Visual Studio 2013, and CMake 3.5.2.

I downloaded the .zip source from the Eigen Main page < http://eigen.tuxfamily.org/index.php?title=Main_Page >, and configured and generated using CMake.

When I open eigen.sln in MSVC, I get the following error multiple times:

'error C3066: there are multiple ways that an object of this type can be called with these arguments'

in the file array_reverse.cpp. Specifically in the following section. The 'VERIFY_IS_APPROX' seems to be the source of the error:
MatrixType m1_r = m1.reverse();
// Verify that MatrixBase::reverse() works
for ( int i = 0; i < rows; i++ ) {
for ( int j = 0; j < cols; j++ ) {
VERIFY_IS_APPROX(m1_r(i, j), m1((rows - 1 - i), (cols - 1 - j)));
}
}

I also get the following in DenseBase.h:

'error C2719: 'unnamed-parameter': formal parameter with __declspec(align('16')) won't be aligned'

Which seems to relate to the lines 'typename internal::result_of<BinaryOp(typename internal::traits<Derived>::Scalar)>::type'

But I am making progress on the second error, the first one seems to be the larger stumbling point.

Any help is appreciated.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Build Errors in MSVC 2013

Mon Jul 18, 2016 12:07 pm
What about the latest 3.2: http://bitbucket.org/eigen/eigen/get/3.2.tar.gz ? Here it is working fine with MSVC 2012 and 2015. I plan to release 3.2.9 very soon.
LPKW
Registered Member
Posts
2
Karma
0

Re: Build Errors in MSVC 2013

Mon Jul 18, 2016 8:05 pm
I just finished building it from the repo that you linked to- I am getting the same errors.

If it works with both 2012 and 2015, I imagine it must be specific to 2013, but nothing is coming to my mind that would cause this.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Build Errors in MSVC 2013

Tue Jul 19, 2016 3:22 pm
hm, indeed: http://manao.inria.fr/CDash/index.php?p ... 2016-07-19

Fixed: https://bitbucket.org/eigen/eigen/commits/79b3dd86b1d5

In practice, users are very unlikely to hit this issue.


Bookmarks



Who is online

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