0

I've use to create this in Turboc++ 3.0
and there are four linker error
how could i fix this?

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

main()

	{
		int gd=DETECT,gm,col=0;
		initgraph(&gd,&gm,"c:\tc\bgi");
		while(!kbhit())
	{
		setcolor(15);
		circle(col,100,50);


		col++;
		if(col>=600)
		col=0;
		cleardevice();
	}
	}

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by thekashyap
0

I've use to create this in Turboc++ 3.0
and there are four linker error
how could i fix this?

What are the linker errors? Please post them; it helps us help you faster, especially if we don't have Turbo C++ ourselves.

If I were to guess, I'd say you're missing a reference to the graphics library. I don't know how TC++ organizes things, but it'll be in a menu something like Options->Linker->Libraries. Borland might have even put in a "Graphics Library" option to make life easier.

1

Although your confidence in abilities of us at daniweb is overwhelming, we have not yet mastered the art of telepathy or remote desktop viewing. So we are unable to see what the errors are.

Read this . It tells you which lib, bgi you need and so on.
Also note graphics.h is too old now. If you're starting off with learning, use something newer.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.