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

Strange error when compiling with eigen using windows dll

Tags: None
(comma "," separated)
pckben
Registered Member
Posts
1
Karma
0
Hi everyone,

I had this error when using eigen library in a Windows 32 DLL, using the default generated template from Visual Studio 2008, with just 3 lines added to declare a MatrixXd.

error:
Code: Select all
Error   1   error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed   c:\program files\microsoft visual studio 9.0\vc\include\intrin.h   1040


I tried to comment out line 1040 in this file and it works. I don't know whether what I'm doing might affect anything though. Could anyone let me know how to fix this in the correct way?

Thanks,

Ben
User avatar
bjacob
Registered Member
Posts
658
Karma
3
This was probably bug 125 which just got fixed. Please retry. If you still have a problem please file a bug mentioning exact eigen version.


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: Bing [Bot], Evergrowing, Google [Bot], rockscient