title: Reason and solution for error -"/usr/bin/ld: cannot find -levent "?
body: <p>While compiling my program which is using libevent library I am using gcc option -levent. But I am getting this error - </p>
  
  <p>/usr/bin/ld: cannot find -levent</p>
  
  <p>I do not have libevent on my system so I am statically linking to it while compiling using</p>
  
  <pre><code>gcc -o Hello -static -I libevent-1.4.12-stable/ hello.c -levent
  </code></pre>
  
  <p>How can i resolve this?</p>
  
  <p>Thanks in advance!</p>