Issues with Boost

I developed C++ code with boost under Visual Studio. In future, the code will be ported to QNX. I generated the makefile from the .Net sln file with MakeItSo, and then I tried to compile the code under Cygwin using gcc, but I am getting the following error:

In file included from /usr/local/include/boost/asio/async_result.hpp:18:0,
from /usr/local/include/boost/asio.hpp:20,
from TCPClient.h:35,
from TCPClient.cpp:29:
/usr/local/include/boost/asio/detail/config.hpp:486:5: warning: #warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. [-Wcpp]
# warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.
^
/usr/local/include/boost/asio/detail/config.hpp:487:5: warning: #warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command line. [-Wcpp]
# warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command line.
^
/usr/local/include/boost/asio/detail/config.hpp:488:5: warning: #warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). [-Wcpp]
# warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
^
/usr/local/include/boost/asio/detail/config.hpp:512:5: error: #error You must add -D__USE_W32_SOCKETS to your compiler options.
# error You must add -D__USE_W32_SOCKETS to your compiler options.

Any help will be appreciated
Last edited on
Topic archived. No new replies allowed.