The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k
stars
1.65k
forks
source link
Build error with Qt5.9.5 MSVC 2015 (cpprest sdk v2.9) #1686
I tried to build Qt(5.9.5 MSVC2015) project with cpprest sdk(2.9),
but it cause error at json.h
// Static factories
/// <summary>
/// Creates a null value
/// </summary>
/// <returns>A JSON null value</returns>
static _ASYNCRTIMP value __cdecl null();
/// <summary>
/// Creates a number value
/// </summary>
/// <param name="value">The C++ value to create a JSON value from</param>
error occured at [static _ASYNCRTIMP value __cdecl null();]
C2059: syntax error: 'constant'
C2238: unexpected token(s) preceding ';'
I tried to build Qt(5.9.5 MSVC2015) project with cpprest sdk(2.9),
but it cause error at json.h
error occured at [static _ASYNCRTIMP value __cdecl null();] C2059: syntax error: 'constant' C2238: unexpected token(s) preceding ';'
Is there any solution?