急,求高人指点,tc可运行,但borland c 3.1出错!
求高人指点,谢谢
程序tc下可以正常运行,但到了borland c 3.1下面
编译没有问题,make 就出很多链接错误
Linker Error:undefined symbol _initgraph in module ERROR.C
Linker Error:undefined symbol _ cleardevice in module ERROR.C
Linker Error:undefined symbol _ line in module ERROR.C
Linker Error:undefined symbol _moveto in module ERROR.C
...
程序很简单
#include <graphics.h>
#include <stdio.h>
#include <conio.h>
void main()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"C:\\BC45\BGI");
cleardevice();
moveto(300,35);
printf("ATM");
line(80,60,560,60);
line(560,60,560,420);
line(560,420,80,420);
line(80,420,80,60);
moveto(190,80);
outtext("Welcome to use ATM service!");
setbkcolor(1);
getch();
closegraph();
}