title: Boost::FileSystem Linking Problem
body: <p>I downloaded and built the boost libraries (version 1.47.0) on Windows 7 (64bit) following the <a href="http://www.boost.org/doc/libs/1_47_0/more/getting_started/windows.html#or-simplified-build-from-source" rel="nofollow">instructions here</a>.</p>
  
  <p>Now when I want to use the <code>Boost::Filesystem</code> library I can include the header file without issue and it compiles my code file. The problem arises at linking. I get the following errors;</p>
  
  <pre><code>main.obj : error LNK2019: unresolved external symbol "class boost::filesystem3::file_status __cdecl boost::filesystem3::detail::status(class boost::filesystem3::path const &amp;,class boost::system::error_code *)" (?status@detail@filesystem3@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem3::exists(class boost::filesystem3::path const &amp;)" (?exists@filesystem3@boost@@YA_NAEBVpath@12@@Z)
  main.obj : error LNK2019: unresolved external symbol "private: static class std::codecvt&lt;wchar_t,char,int&gt; const * &amp; __cdecl boost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet@path@filesystem3@boost@@CAAEAPEBV?$codecvt@_WDH@std@@XZ) referenced in function "public: static class std::codecvt&lt;wchar_t,char,int&gt; const &amp; __cdecl boost::filesystem3::path::codecvt(void)" (?codecvt@path@filesystem3@boost@@SAAEBV?$codecvt@_WDH@std@@XZ)
  </code></pre>
  
  <p>(amongst others)</p>
  
  <p>It might be worth noting that when I first tried to build the project it said it couldn't find the .lib file <code>libboost_filesystem-vc100-mt-1_47.lib</code>. I hadn't specifically told it it needed that file so not sure how it figured that out? Either way I pointed the linker to the correct directory and then it gave the above errors. </p>
  
  <p>Does anybody know how to fix this problem? Thanks.</p>
  
  <p><strong>Edit:</strong> I'm using VS2010 toolchain through eclipse CDT to build the system. The complete compile command is</p>
  
  <pre><code>cl /c /EHs /MD /Zi /I"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" /I"C:\boost_1_47_0" /nologo &lt;SOURCE_FILE&gt;
  </code></pre>
  
  <p>and the linker command </p>
  
  <pre><code>link /debug /nologo /libpath:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64 /libpath:C:\boost_1_47_0\stage\lib /libpath:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64 /OUT:&lt;EXE_NAME&gt; &lt;OBJECT_FILES&gt;
  </code></pre>