title: ld cannot find udev
body: <p>I'm trying to compile a program but it throws the following error:</p>
  
  <pre><code>[cc] /usr/bin/ld: cannot find -ludev
  </code></pre>
  
  <p>I checked other topics on SO but the responses were to install something while I seem to be having libudev installed.</p>
  
  <p>In /lib/x86_64-linux-gnu I also have:</p>
  
  <pre><code>lrwxrwxrwx 1 root root      16 lut 19 21:30 libudev.so.1 -&gt; libudev.so.1.3.5
  -rw-r--r-- 1 root root   67600 lut 19 21:31 libudev.so.1.3.5
  </code></pre>
  
  <p>I've tried linking libudev.so.0 to libudev.so.1 but it's still not working. What is ld looking for and why is it not working? How can I solve this?</p>