标题:vc的链接错误(LNK2001
取消只看楼主
dogface
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-5-16
 问题点数:0 回复次数:1 
vc的链接错误(LNK2001

#include "stdio.h"
#include "graphics.h"


void DrawPeaceSymbol(double x,double y,double r);

void main()
{
InitGraphics();
DrawPeaceSymbol(10,10,5);
}

void DrawPeaceSymbol(double x,double y,double r)
{
double current_x,current_y;
MovePen(x+r,y);
DrawArc(r,0,360);
DrawArc(r,0,-45);
current_x=GetCurrentX();
current_y=GetCurrentY();
DrawLine(x-current_x,y-current_y);
DrawLine(x-current_x,current_y-y);
MovePen(x,y);
DrawLine(x,r);
MovePen(x,y);
DrawLine(x,-r);
}


编译可以通过,链接的时候提示出错:
Linking...
7.4.obj : error LNK2001: unresolved external symbol _InitGraphics
7.4.obj : error LNK2001: unresolved external symbol _DrawLine
7.4.obj : error LNK2001: unresolved external symbol _GetCurrentY
7.4.obj : error LNK2001: unresolved external symbol _GetCurrentX
7.4.obj : error LNK2001: unresolved external symbol _DrawArc
7.4.obj : error LNK2001: unresolved external symbol _MovePen
Debug/7.4.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

不知道是什么原因?

搜索更多相关主题的帖子: 链接 
2007-05-16 18:07
dogface
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-5-16
得分:0 
怎么没有反应阿
呼唤高手!!!!!!!!!!111
2007-05-16 21:03



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-139939-1-1.html




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

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