title: ld configuration cannot find -lboost_system
body: <p>I already installed <code>libboost</code>, and I made sure the certain library already located in <code>/usr/lib/x86_64-linux-gnu/</code>. I already called <code>#include &lt;boost/filesystem.hpp&gt;</code> in my .cpp file. But, whenever I run this,</p>
  
  <pre><code>g++ -Wall -g -o result.out main.cpp -L/usr/lib/x86_64-linux-gnu -lboost_system
  </code></pre>
  
  <p>The system gave me</p>
  
  <blockquote>
    <p>/usr/bin/x86_64-linux-gnu-ld: cannot find -lboost_system
    collect2: error: ld returned 1 exit status</p>
  </blockquote>
  
  <p>Realizing it mentioned <code>ld</code>, I checked my <code>/etc/ld.so.conf.d</code>, and I found a configuration file linked to <code>/usr/lib/x86_64-linux-gnu/</code>. I ran <code>sudo ldconfig</code>, then ran the g++ command again, same result.</p>
  
  <p>I don't know what I'm going to do next, so can anyone help me? I'll provide another information related to this if anyone ask. Thanks in advance.</p>