title: Linking error with boost filesystem
body: <p>I just wrote a little program using the boost filesystem library. Now it comes with some weird linking errors.
  I already tried reordering the libraries, checked compiler version used for the boost binaries (Boost 1.51.0; MinGW 4.7.1 static libraries) and my MinGW version - 4.7.1.</p>
  
  <p>Has someone an idea what else the cause for this could be?</p>
  
  <p>Thanks in advance.</p>
  
  <p>The output of the linker was: <br/></p>
  
  <pre>
  obj\Debug\main.o: In function `ZN5boost10filesystem6existsERKNS0_4pathE':
  C:/boost_1_51_0/boost/filesystem/operations.hpp:289: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' <br/>
  obj\Debug\main.o: In function `ZN5boost10filesystem4pathC1IA15_cEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE':
  C:/boost_1_51_0/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path::codecvt()'
  obj\Debug\main.o: In function `ZN5boost10filesystem11path_traits8dispatchISbIwSt11char_traitsIwESaIwEEEEvRKSsRT_RKSt7codecvtIwciE':
  C:/boost_1_51_0/boost/filesystem/path_traits.hpp:174: undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::basic_string, std::allocator >&, std::codecvt const&)'
  </pre>
  
  <p>I linked to the following libraries (set in Code::Blocks build options): <br/></p>
  
  <pre>
  ...\boost_1_51_0\stage\lib\libboost_system-mgw47-mt-d-1_51.a <br/>
  ...\boost_1_51_0\stage\lib\libboost_filesystem-mgw47-mt-d-1_51.a
  </pre>
  
  <p>The source Code (the interesting parts, i.e. the parts using boost): <br/></p>
  
  <pre>
  //... <br/>
  #define BOOST_SYSTEM_NO_DEPRECATED<br/>
  #define BOOST_FILESYSTEM_NO_DEPRECATED<br/>
  #include &lt;boost/filesystem.hpp&gt;<br/>
  //...<br/>
  int main()<br/>
  {<br/>
      boost::filesystem::path p("./file.txt");<br/>
      if(boost::filesystem::exists(p)) cout 
  //...<br/>
  }<br/>
  //...<br/>
  </pre>