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

在通常的C++ project 中能夠經過定義宏 WIN32_LEAN_AND_MEAN 來解決,或者在#include <windows.h>以前加入#include <winsock2.h>windows

個人解決辦法是在stdafx.h中code

#define WIN32_LEAN_AND_MEAN
相關文章
相關標籤/搜索