title: Undefined references with graphics.h in Dev C++?
body: <p>I am trying to use <code>graphics.h</code> header file and to write a simple program to test whether it works. This is the program which I wrote</p>
  
  <pre><code>#include &lt;graphics.h&gt;
  
  int main( )
  {
      initwindow(400, 300, "First Sample");
      circle(100, 50, 40);
      while (!kbhit( ))
      {
          delay(200);
      }
      return 0;
  }
  </code></pre>
  
  <p>But when I try to compile and run this program I get an error as follows,</p>
  
  <pre><code>(.text+0x3d): undefined reference to `initwindow'
  (.text+0x52): undefined reference to `circle'
  (.text+0x5e): undefined reference to `delay'
  </code></pre>
  
  <p>What can I do to solve this? Please help.</p>