/*A program to draw a space with stars*/
#include<graphics.h>
main()
{
int gd=DETECT,gm;
int i,x,y;
initgraph(&gd,&gm,"");
line(0,0,640,0);
line(0,0,0,480);
line(639,0,639,480);
line(639,479,0,479);
for(i=0;i<=1000;i++)
{
x=rand()%639;
y=rand()%480;
putpixel(x,y,15);
}
getch();
closegraph();
}
/* End of program */
These Errors when run program but when compile the program not.
Undefined symbol _initgraph in module graph.c
Undefined symbol _line in module graph.c
Undefined symbol _closegraph in module graph.c
Undefined symbol _putpixel in module graph.c
what worng with this.
i'm using Turbo C 3.0 (plz don't say change compiler)