解决boost::asio的WinSock.h has already been included

在一般的C++ project 中可以通过定义宏 WIN32_LEAN_AND_MEAN 来解决,或者在#include <windows.h>之前加入#include <winsock2.h>

我的解决办法是在stdafx.h中

#define WIN32_LEAN_AND_MEAN


你可能感兴趣的:(解决boost::asio的WinSock.h has already been included)