title: Filesystem and locale
body: <p>I'm trying to build code which uses boost filesystem with NDK (for android).</p>
  
  <p>Everything is okay except the filesystem:</p>
  
  <pre><code>libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
  libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
  libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
  libs/filesystem/src/path.cpp:911: error: undefined reference to 'std::locale::locale(char const*)'
  </code></pre>
  
  <p>The 911 line of code:</p>
  
  <pre><code>static std::locale posix_lazy_initialization(path::imbue(std::locale("")));
  </code></pre>
  
  <p>Any ideas how to fix this?</p>
  
  <hr>
  
  <p>When I changed STL version from: <code>gnustl_static</code> to <code>gnustl_shared</code> problem disappeared. What could it be?</p>