tc3.0的问题
我的在TC3.0中运行下面程序时:
/* hello.c */
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main()
{
int b;
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:\\tc");
cleardevice();
printf("\n\n\n this program shows the circle graph.\n");
for(b=10;b<=140;b+=10)
circle(320,240,b);
getch();
closegraph();
}
编译没有错误,而在运行时却出现下面下列错误:
║•Linker Error: Undefined symbol _closegraph in module STU\HELLO.C ▒
║ Linker Error: Undefined symbol _circle in module STU\HELLO.C ▒
║ Linker Error: Undefined symbol _cleardevice in module STU\HELLO.C ▒
║ Linker Error: Undefined symbol _initgraph in module STU\HELLO.C ▒
请问C语言高手们这是什么错误,应该怎样修改.
参考答案:连接出现错误,应该是TC的文件受到损坏了,或者你使用了不存在的连接库,尝试重新安装TC看看