title: undefined reference when using experimental/filesystem
body: <p>I am trying to compile a project with experimental::filesystem in visual studio code using code runner, however I can't get it to compile even in the terminal.</p>
  
  <p>The code is as follows, a very simple test usage from the docs:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include&lt;experimental/filesystem&gt;
  using namespace std;
  namespace fs = std::experimental::filesystem;
  
  int main(){
      fs::create_directories("sandbox/a/b");
      cout &lt;&lt; "done.";
      return 0;
  }
  </code></pre>
  
  <p>Compiling with </p>
  
  <pre><code>g++ -std=c++17 $fullFileName &amp;&amp; ./a.out -lstdc++fs
  </code></pre>
  
  <p>in the code runner config or with just </p>
  
  <pre><code>g++ -std=c++17 test.cpp -o test -lstdc++fs
  </code></pre>
  
  <p>in terminal doesn't compile or doesn't work in general.</p>
  
  <p>The error it provides is:</p>
  
  <pre><code>/tmp/cco0g7Qf.o: In function `main':
  test.cpp:(.text+0x24): undefined reference to `std::experimental::filesystem::v1::create_directories(std::experimental::filesystem::v1::__cxx11::path const&amp;)'
  /tmp/cco0g7Qf.o: In function `std::experimental::filesystem::v1::__cxx11::path::path&lt;char [12], std::experimental::filesystem::v1::__cxx11::path&gt;(char const (&amp;) [12])':
  test.cpp:(.text._ZNSt12experimental10filesystem2v17__cxx114pathC2IA12_cS3_EERKT_[_ZNSt12experimental10filesystem2v17__cxx114pathC5IA12_cS3_EERKT_]+0x64): undefined reference to `std::experimental::filesystem::v1::__cxx11::path::_M_split_cmpts()'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Any help would be apreciated, I am running linux and have already checked to make sure my libstdc++ is up to date along with my gcc.</p>