I found the dependencies but it did not list "ws2_32" any idea why?
It is rather cryptic.
When compiling for Windows using Microsoft Visual C++ or Borland C++, Boost.Asio will automatically link in the necessary Windows SDK libraries for sockets support (i.e. ws2_32.lib and mswsock.lib, or ws2.lib when building for Windows CE). The BOOST_ASIO_NO_DEFAULT_LINKED_LIBS macro prevents these libraries from being linked.
Which means that on Windows, you need Windows Sockets API, which, in MinGW, is available through
ws2_32.
For future reference though, is there a file I should be looking for?
Normally, libraries for MinGW (and GCC in general) will be named in the form of
lib*.a - when specifying them to the linker, the
lib prefix and
.a extension are not necessary. Wherever you installed boost to (assuming you compiled the libraries), there should be a folder with a bunch of
libboost_*-mgw*-*-1_*.a files (the asterisks depend on your compiler, the version of boost you downloaded, and the configuration(s) you built). This folder needs to be in your linker search directories. The one with "system" in its name is the one you are trying to link to.