Undefined symbol‘-EGAVGA_diver’ in module GRAPH.c

ogiso_pest 2008-07-08 09:15:53
运行下列代码时,出现Undefined symbol‘-EGAVGA_diver’ in module GRAPH.c

错误
请问怎么修正?
谢谢了
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

int main(void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;

/* register a driver that was added into graphics.lib */
/* For information on adding the driver, see the
/* BGIOBJ section of UTIL.DOC */
errorcode = registerbgidriver(EGAVGA_driver);

/* report any registration errors */
if (errorcode < 0)
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}

/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");

/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}

/* draw a line */
line(0, 0, getmaxx(), getmaxy());

/* clean up */
getch();
closegraph();
return 0;
}

...全文
211 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ogiso_pest 2008-07-08
  • 打赏
  • 举报
回复
已经弄好了
不过谢谢你的帮助
才看到 呵呵
xkyx_cn 2008-07-08
  • 打赏
  • 举报
回复
这块的编程我也没做过,有篇帖子参考一下:
http://topic.csdn.net/t/20010428/04/107730.html
ogiso_pest 2008-07-08
  • 打赏
  • 举报
回复
不懂
请问怎么修改啊??
xkyx_cn 2008-07-08
  • 打赏
  • 举报
回复
EGAVGA_driver没有定义过

69,369

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧