It's a conflict between two Microsoft header files. I put a workaround in 
misc.h, but only for the 32-bit versions. Please try the attached patch and 
let me know if it works.

--------------------------------------------------
From: "OneOfMany" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2007 4:26 AM
To: "Crypto++ Users" <[EMAIL PROTECTED]>
Subject: Attempting to compile Crypt++ 5.5.2 on VS 2005 SP1 + Vista

>
> I get 6 copies of the below errors (so 12 errors)...
>
> Error 1 error C2733: second C linkage of overloaded function
> '_interlockedbittestandset64' not allowed C:\Program Files\Microsoft
> SDKs\Windows\v6.0\Include\winnt.h 1867
> Error 2 error C2733: second C linkage of overloaded function
> '_interlockedbittestandreset64' not allowed C:\Program Files\Microsoft
> SDKs\Windows\v6.0\Include\winnt.h 1873
>
> But I can't find where a duplicate include is that I can remove.  I
> tried removing some #include <windows.h> entries, but that messed up
> the build even more.
>
> [UPDATE] I just realized the package was trying to build for x64
> instead of the Win32 like I expected.  The error disappears if I
> switch the target to the 32 bit entry.  So might be a bug specifically
> related to compiling against 64-bit in Windows?
>
> Looks like the offenders are fipstest.cpp, hrtimer.cpp, network.cpp,
> osrng.cpp, socketft.cpp, and trdlocal.cpp (the error occurs after it
> says that file is being compiled).  But the errors point at the header
> (doesn't really help).
>
>
> > 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Attachment: misc.h.patch
Description: Binary data

Reply via email to