winnt.h declaration incompatible with func declared in emmintrin.h

Taylor Kidd
Total Points:
200
Status Points:
150
Green Belt
June 10, 2009 5:51 PM PDT
Rate
 
#2 Reply to #1
did you use "__cdecl (/Gd)"? Try to add it.

Jennifer


Jennifer,

Thanks. It worked.

MSDN has an explanation of the calling conventions (http://msdn.microsoft.com/en-us/library/46t77ak2.aspx), but I have to admit that I'm not sure about their advantages and disadvantages outside of __fastcall.

So I'm guessing that the problem was that winnt.h uses a __stdcall convention which didn't match with the __cdecl convention used in emmintrin.h. (Hey, if I'm wrong, correct me.)

--Taylor



Intel Software Network Forums Statistics

8491 users have contributed to 31629 threads and 100767 posts to date.
In the past 24 hours, we have 30 new thread(s) 136 new posts(s), and 192 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member shadowwolf99