title: /usr/bin/ld cannot find <library> only during compilation
body: <p>The error it throws:</p>
  
  <pre><code>g++ -m64 -std=c++17 main.cpp -o vulkanprogram -lvulkan
  /usr/bin/ld: cannot find -lvulkan
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>what ld returns when I find it myself:</p>
  
  <pre><code>ld -lvulkan --verbose
  attempt to open /usr/lib/libvulkan.so succeeded
  /usr/lib/libvulkan.so
  </code></pre>
  
  <p>can someone help explain this to me?</p>