title: implicit declaration of function 'wiringPilSR'
body: <p>I'm trying to attach an interrupt to a pin using wiringPI's <code>wiringPilSR</code>. My code looks like this:</p>
  
  <pre><code>#include &lt;wiringPi.h&gt;
  #include &lt;stdio.h&gt;
  
  int inPin = 3;
  
  void myInterrupt();
  
  int main(vodi){
      wiringPilSetupGpio();
      pinMode(inPin, INPUT);
      wiringPilSR(inPin, INT_EDGE_RISING, &amp;myInterrupt);
      while(1){
          printf("Cycle repeated\n");
          delay(1000);
      }
      return 0;
  }
  
  void myInterrupt(){
      printf("Interrupted");
      return 0;
  }
  </code></pre>
  
  <p>When I try to build the code in Geany, I get a warning "<code>implicit declaration of function 'wiringPilSR'</code>" and error "<code>undefined reference to 'wiringPilSR'</code>". I have set the build commands as shown in this <a href="https://learn.sparkfun.com/tutorials/raspberry-gpio" rel="nofollow noreferrer">tutorial on sparkfun</a></p>