#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>

void main()
{
     int graphdriver=DETECT,graphmode;
     int color,n,m;
     initgraph(&graphdriver,&graphmode,"C:\\TC\\BGI");
     for(n=0;n<10;n++)
     {
                      putpixel(250+n,350,BLUE);
     }
     for(m=0;m<10;m++)
     {
		      int x=getpixel(250+m,350);
		      printf("%d",x);
     }
      getch();
}

please any one help me solving errors..

Recommended Answers

All 6 Replies

compiler turbo c 3.0
win xp

what are the errors? Post a few of them.

thanks for replying.. these are the errors:
Linker error: Undefined symbol _initgraph in module
Linker error: Undefined symbol _closegraph in module
Linker error: Undefined symbol _circle in module

You forgot to add graphics.lib to the compile.

sorry>> i didnt get u.. kindly explain it lil bit that where and how to add it, as i m new to graphics field
thanks again..

RTFM.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.