Compiler Error C2733 – second C linkage of overloaded function 'function' not allowed

I got this from http://stefanobolli.blogspot.com/2010/10/compiler-error-c2733-second-c-linkage.html
Compiler Error C2733 – second C linkage of overloaded function ‘function’ not allowed
If we try to compile with Microsoft Visual C++ 2010 Express a project that includes old Microsoft Platform SDK headers and against old libraries, we have to modify Additional include Directories and Additional library Directories.
When we install Microsoft Visual C++ 2010, it updates the old Windows SDK, adding a new directory in C:Program Files named Microsoft SDKs. This directory contains new headers and new libs, so if we try to compile an old project with persistent references to the old SDK, Visual C++ will return a bunch of errors C2733 (in my case “second C linkage of overloaded function ‘_interlockedbittestandset’ not allowed”).
As said above, the solution is to update the paths in Additional include Directories and Additional library Directories. (example, from C:Program Files\Microsoft Platform SDKInclude to C:Program FilesMicrosoft SDKsWindowsv7.0Ainclude).

In

Leave a Reply

Your email address will not be published. Required fields are marked *