How to use boost asio library with Cygwin 64 bit
问题 I am running Windows 10 64bit. Cygwin is 64 bit. I installed boost from cygwin package manager. I tried to compile test.cpp: #include <boost/asio.hpp> int main(int argc, char**argv) { return 0; } using command g++ -std=c++11 -Wall -g -D__USE_W32_SOCKETS D_WIN32_WINNT=_WIN32_WINNT_WIN7 test.cpp -o test.exe but compile fails. It looks like posix is being used . Any ideas why this fails? In file included from /usr/include/boost/asio/detail/fd_set_adapter.hpp:22:0, from /usr/include/boost/asio