complier saying "first defined here"

Hi thanks for your time. I'm trying to learn how to use graphics in dev c++, since there is no BGI library there i used this tutorial:
http://www.uniqueness-template.com/devcpp/#step4

to install graphics.h.

When i try to compile, I'm getting the following errors on the following code:
1
2
3
4
5
6
7
8
9
10
11
#include <graphics.h>

  int main() 
  { 
      initwindow(400,300); //open a 400x300 graphics window
      moveto(0,0);         
      lineto(50,50);       
      while(!kbhit());     //wait for user to press a key
      closegraph();        //close graphics window
      return 0; 
  }


multiple definition of `kbhit'
first defined here
multiple definition of `getch'
first defined here
ld returned 1 exit status
C:\Documents and Settings\gustavo\Mis documentos\programas\estructura de datos\Makefile.win [Build Error] [Project1.exe] Error 1


I think it may have to do with the conio.h library i also installed, but i don't have any clue as how to fix it. Are graphics.h and conio.h compatible? does graphics.h contain all the functions on conio.h? Is there any way to fix this?
thank you again.
Topic archived. No new replies allowed.