title: Undefined references when including boost library
body: <p>I am trying to use boost's asio library, but I keep getting undefined references.  I'm on Dev-Cpp on Windows, which is using the G++ compiler.</p>
  
  <p>I installed boost using the installer from boostpro computing for Boost 1.42.0 [<a href="http://www.boostpro.com/download" rel="nofollow noreferrer">link</a>].  Here is the code of the test program I am trying to make:</p>
  
  <pre><code>#include &lt;boost/asio.hpp&gt;
  #include &lt;iostream&gt;
  
  int main(void){
      std::cout &lt;&lt; "Boost test." &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>My boost include headers are under <code>/include</code> and all the libs for boost are compiled and under <code>/lib</code> directly.  There seems to be some library that's not being included, but I do not know what is.  I've tried including a few likely ones but to no avail.</p>
  
  <p>The kind of linker errors I'm getting are:</p>
  
  <pre><code>[Linker error] undefined reference to `boost::system::get_system_category()'
  [Linker error] undefined reference to `boost::system::get_generic_category()' 
  [Linker error] undefined reference to `boost::system::get_generic_category()' 
  [Linker error] undefined reference to `boost::system::get_generic_category()' 
  [Linker error] undefined reference to `boost::system::get_system_category()' 
  [Linker error] undefined reference to `WSACleanup@0' 
  [Linker error] undefined reference to `WSAStartup@8' 
  [Linker error] undefined reference to `boost::system::get_system_category()' 
  ld returned 1 exit status 
  C:\Dev-Cpp\Projects\Boost Test\Makefile.win [Build Error]  [boostTest.exe] Error 1 
  </code></pre>
  
  <p>I've been trying to get boost to work for a while and would really appreciate any help on the matter.  Thanks in advance.</p>