title: collect2: error: ld returned 1 exit status graphics.h
body: <p>I'm using the graphics.h library in Ubuntu 14
  And I'm having trouble using this simple code:</p>
  
  <pre><code>#include &lt;graphics.h&gt;
  
  main(){
  
      int gd = DETECT, gm;
      initgraph(&amp;gd, &amp;gm, "C:\\TC\\BGI");
      putpixel(25, 25, RED);
      closegraph();
      getch();
      return 0;
  }
  </code></pre>
  
  <p>And when I compile it, it gives me this error</p>
  
  <blockquote>
    <p>collect2: error: ld returned 1 exit status</p>
  </blockquote>
  
  <p>I don't know what am I doing wrong.</p>