I'm trying to build xercesc 3.1 on 64bit Windows 7 using Visual Studio 2005. I downloaded the source from the official site and followed the instructions given there (basically, just 'open the .sln and build project XercesLib), but I get the following compilation errors:
error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed
I noticed that the SDK version in this error message was 6.1 whereas 7.0 was released with Windows 7. So I tried adding C:\Program Files\Microsoft SDKs\Windows\v7.0\include
to the Additional Include Directories of the project, but this had no effect.
I also checked that I had opened the right sln file - I went with the one labelled 'VC8', which I believe should correspond to VS2005.