| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1035 人关注过本帖
标题:Undefined symbol‘-EGAVGA_diver’ in module GRAPH.c
只看楼主 加入收藏
ogiso_pest
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-6-26
收藏
 问题点数:0 回复次数:0 
Undefined symbol‘-EGAVGA_diver’ in module GRAPH.c
运行下列代码时,出现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;
}
搜索更多相关主题的帖子: diver GRAPH symbol module EGAVGA 
2008-07-07 23:47
快速回复:Undefined symbol‘-EGAVGA_diver’ in module GRAPH.c
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.037236 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved