weidai11 / cryptopp

free C++ class library of cryptographic schemes
https://cryptopp.com
Other
4.67k stars 1.47k forks source link

Can't compile Windows vs2019 c2238 c2059 c2143 errors #1229

Closed Clydeston closed 9 months ago

Clydeston commented 10 months ago

Hello had this working on a separate project using vcpkg on windows vs2019 v142 build tools, but since I've switched to a different project I'm now getting these errors below. I've seen a few other issues saying this might be a compiler bug, but it compiles on a different project with identical settings? Any help appreciated. Error C2238 unexpected token(s) preceding ';' seckey.h 56 Error C2059 syntax error: 'constant' seckey.h 56 Error C2143 syntax error: missing ';' before '}' seckey.h 56

I've tried changing my cpp versions but the error still remains.

Clydeston commented 10 months ago

Any help at all this? Using latest release 8.8.0

noloader commented 9 months ago

Please contact the vcpkg folks. I have no idea what they are doing.

Or, use Visual Studio or MSBuild.