R
risshahaprma
I made a simple program to draw line but it gives errors.I am not able
to debug them and feeling frustrated as I canna even get myself
started for graphics ! When I used the same code in my computer lab it
worked fine..Plz help..I would really appreciate your response!
#include <graphics.h>
#include <iostream.h>
#include <conio.h>
int main()
{
/* request auto detection */
int gdriver = DETECT, gmode;
/* initialize graphics mode */
initgraph(&gdriver, &gmode, "c:/tc/bgi");
/* draw a line */
line(0, 0, 400, 400);
getch();
return 0;
}
error 1:undefined symbol _line in module ris.cpp
error 2:undefined symbol _initgraph in module ris.cpp
to debug them and feeling frustrated as I canna even get myself
started for graphics ! When I used the same code in my computer lab it
worked fine..Plz help..I would really appreciate your response!
#include <graphics.h>
#include <iostream.h>
#include <conio.h>
int main()
{
/* request auto detection */
int gdriver = DETECT, gmode;
/* initialize graphics mode */
initgraph(&gdriver, &gmode, "c:/tc/bgi");
/* draw a line */
line(0, 0, 400, 400);
getch();
return 0;
}
error 1:undefined symbol _line in module ris.cpp
error 2:undefined symbol _initgraph in module ris.cpp