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

Visual Studio 2003

Tags: None
(comma "," separated)
ehsu
Registered Member
Posts
1
Karma
0

Visual Studio 2003

Tue Dec 23, 2008 5:33 pm
Hi all,

I'm wondering if anyone has had success using Eigen in Visual Studio 2003 projects. I'm getting the following error:

[font=Courier]c:EigensrcCoreMathFunctions.h(41) : error C2785: 'NumTraits::Real Eigen::precision(void)' and 'Eigen::NumTraits::Real Eigen::precision(void)' have different return types
c:workMPLsrcThirdPartyEigensrcCoreMathFunctions.h(28) : see declaration of 'Eigen::precision'[/font]

It doesn't seem that templates are being handled correctly. Just wondering if there are any known workarounds other than swapping compilers?

Thanks,
Eugene
User avatar
bjacob
Registered Member
Posts
658
Karma
3

RE: Visual Studio 2003

Tue Dec 23, 2008 7:23 pm
ehsu wrote:I'm wondering if anyone has had success using Eigen in Visual Studio 2003 projects. I'm getting the following error:

[font=Courier]c:EigensrcCoreMathFunctions.h(41) : error C2785: 'NumTraits::Real Eigen::precision(void)' and 'Eigen::NumTraits::Real Eigen::precision(void)' have different return types
c:workMPLsrcThirdPartyEigensrcCoreMathFunctions.h(28) : see declaration of 'Eigen::precision'[/font]

It doesn't seem that templates are being handled correctly. Just wondering if there are any known workarounds other than swapping compilers?


At least you could update compiler: MSVC 2005 works with Eigen, and MSVC 2008 even allows Eigen vectorization to happen.

I'm always grateful for patches letting MSVC 2003 be supported but I can't make it myself as I don't have a windows machine.

Cheers,
Benoit


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

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