boost 错误报告

#include <Windows.h>
#include <boost/asio.hpp>
编译器会报错,fatal error C1189: #error :  WinSock.h has already been included
 
解决办法
#define WIN32_LEAN_AND_MEAN     // 在#include<windows.h>前定义
#include <windows.h>

程序复杂时候需要多次修改,可以在预处理器里面加上就可以

原文地址:https://www.cnblogs.com/flyinggod/p/10120963.html