| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1509 人关注过本帖
标题:在turbo c编译出错!!
只看楼主 加入收藏
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
 问题点数:0 回复次数:5 
在turbo c编译出错!!
程序代码:
#include<graphics.h>
#include<stdio.h>
main()
{
     int graphdriver=VGA;
     int graphmode=VGAHI;
     initgraph(&graphdriver,&graphmode,"");
     cleardevice();
     moveto(100,20);
     lineto(100,80);
     moveto(200,20);
     lineto(100,80);
     line(100,90,200,90);
     linerel(0,20);
     moverel(-100,0);
     linerel(30,20);
     getch();
     closegraph();
     return 0;


}

错误信息:
---------- Compiler Link ----------
Invalid keyboard code specified
Turbo C++ Version 3.00 Copyright (c) 1992 Borland International
e:\c\cdemo\test1.c:
Turbo Link  Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol _closegraph in module e:\c\cdemo\test1.c
Error: Undefined symbol _linerel in module e:\c\cdemo\test1.c
Error: Undefined symbol _moverel in module e:\c\cdemo\test1.c
Error: Undefined symbol _line in module e:\c\cdemo\test1.c
Error: Undefined symbol _lineto in module e:\c\cdemo\test1.c
Error: Undefined symbol _moveto in module e:\c\cdemo\test1.c
Error: Undefined symbol _cleardevice in module e:\c\cdemo\test1.c
Error: Undefined symbol _initgraph in module e:\c\cdemo\test1.c

        Available memory 4125248

Output completed (0 sec consumed)
搜索更多相关主题的帖子: turbo 编译 
2008-09-27 21:19
奔跑的鸟
Rank: 1
等 级:新手上路
帖 子:391
专家分:0
注 册:2006-1-20
收藏
得分:0 
Wintc下编译通过,你用的是TC++,应该是graphics库的图像函数有改动,去include 文件里看看吧

简单的快乐着~
2008-09-28 20:18
奔跑的鸟
Rank: 1
等 级:新手上路
帖 子:391
专家分:0
注 册:2006-1-20
收藏
得分:0 
LZ是某位原版主的马甲。。。?

简单的快乐着~
2008-09-28 20:19
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
得分:0 
回复 3# 奔跑的鸟 的帖子
什么意思??

[url=http://hi.baidu.com/benzeen]My Blog[/url]
2008-09-29 10:28
奔跑的鸟
Rank: 1
等 级:新手上路
帖 子:391
专家分:0
注 册:2006-1-20
收藏
得分:0 
只是随便问问,我好久没来了,原来的版主都不见了呢:)

简单的快乐着~
2008-09-29 14:11
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
得分:0 
回复 5# 奔跑的鸟 的帖子
嗷嗷@@知道了!!

[url=http://hi.baidu.com/benzeen]My Blog[/url]
2008-10-05 20:30
快速回复:在turbo c编译出错!!
数据加载中...
 
   



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

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