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

Does not compile in VS2010 beta 2

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

Does not compile in VS2010 beta 2

Sat Nov 21, 2009 11:59 pm
Here is the error, could be a beta issue problem I suppose.. or not(it did compile fine in vs2008)

Also why do you make your file names as if they were part of the STL(core instead of core.h)-- this just confuses intellisense and visual assist, causing them to not work.

c:\programming\vs2010test\code\3rdparty\eigen2\eigen\src/Core/Block.h(225): error C2593: 'operator ==' is ambiguous
3> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\system_error(451): could be 'bool std::operator ==<>(_Enum,tr1::enable_if<std::is_error_condition_enum<>::value,const std::error_condition&>::type)'
3> with
3> [
3> _Enum=
3> ]
3> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\system_error(433): or 'bool std::operator ==<>(_Enum,tr1::enable_if<std::is_error_code_enum<>::value,const std::error_code&>::type)'
3> with
3> [
3> _Enum=
3> ]
3> while trying to match the argument list '(, )'
3> c:\programming\vs2010test\code\3rdparty\eigen2\eigen\src/Core/Block.h(283) : see reference to class template instantiation 'Eigen::Block<MatrixType,BlockRows,BlockCols,PacketAccess,32>' being compiled
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Does not compile in VS2010 beta 2

Sun Nov 22, 2009 12:22 am
ok, I cannot check but I think that adding int() around AsRequested should do the job:
Eigen/src/Core/Block.h, line 225:

friend class Block<MatrixType,BlockRows,BlockCols,PacketAccess==int(AsRequested)?ForceAligned:AsRequested,HasDirectAccess>;

If that works I'll commit that fix.
Hauke
Registered Member
Posts
109
Karma
3
OS
Regarding Intellisense and Visual Assist, try to do the following:

In Visual Studio go to

Tools -> Options -> Text Editor -> File Extensions

and check 'Map extensionless files to:' while setting the pull down menu choice on the right hand side to 'Microsoft Visual C++'.

For me Intellisense is working under Visual Studio 2010.

For Visual Assist X there exists a similar option. Go to

VAssistX -> Visual Assist X Options -> Projects -> File Handling

and check 'Parse files without extensions as headers' and the try to rebuild your database.

I admit that VAssist does not seem to work but rest assured that it has nothing to do with the file naming. Maybe you want to submimt a bug report to Whole Tomatoe. Even adding the Eigen directories to stable incldues/sources does not resolve the issue. Alt-G is at least partially working.

Good Luck & Regards,
Hauke
claurel
Registered Member
Posts
3
Karma
0
ggael wrote:ok, I cannot check but I think that adding int() around AsRequested should do the job:
Eigen/src/Core/Block.h, line 225:

friend class Block<MatrixType,BlockRows,BlockCols,PacketAccess==int(AsRequested)?ForceAligned:AsRequested,HasDirectAccess>;


Line 55 of Hyperplane.h needs a similar fix in order to build on MSVC 2010:

typedef Matrix<Scalar,AmbientDimAtCompileTime==Dynamic

should be changed to:

typedef Matrix<Scalar,int(AmbientDimAtCompileTime)==Dynamic

--Chris
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
ok thanks, fixes applied.
castellfr
Registered Member
Posts
4
Karma
0
I've just downloaded msvc2010 ultimate beta2 for a win7 64 bit laptop, and I have the same compiler error. I have checked and both changes in Block.h (line 225) and Hyperplane.h (Line 55) are already there, but still does not compile and the error is the same.

Do you have any clue?
Thanks a lot!
Francesco
castellfr
Registered Member
Posts
4
Karma
0
I forgot to say an important thing. I already had msvc 2010 with a 32 bit win7, and there it was compiling perfectly!
so the problem may be related to the 64 bits...


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]