I have a C++ project that references many other projects/libraries. This is for an application that was created many years ago. About every once a year it is updated and a new v
I got the same error, on Windows 7 with Visual Studio 2013.
In my case my project had a source file with name stdafx.h
, inside that file there was
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
I changed it to
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x601
#endif
and the error disappeared.