title: How are you supposed to know what library names are
body: <p>When using a tool like pkg-config (see <a href="https://stackoverflow.com/questions/28533059/how-to-use-pkg-config-in-make/28533513">here</a>), how is one supposed to know what the library name should be? It is not always intuitive. DLIB, for example, doesn't work for</p>
  
  <ul>
  <li><code>pkg-config --cflags dlib</code></li>
  <li><code>pkg-config --cflags libdlib</code></li>
  <li><code>pkg-config --cflags dlib-19.9</code></li>
  </ul>
  
  <p>I usually have to issue a command like <code>sudo ldconfig -p | grep dlib</code>, but all that does is return <code>libdlib.so</code>, which also doesn't work. </p>
  
  <p>How do experts tackle this problem. Do they simply know all the library names?</p>