请教unresolved external symbol
我的程序是#include<stdio.h>
#include "graphics.h" //graphics.h是《c语言的科学与艺术》的作者编写的库,已经放到vc的include文件夹下。
//graphics.c也放到vc的include文件夹下。
void main(void)
{
InitGraphics(); //图形包初始化。
MovePen(0.5,0.5);
DrawLine(0.0,1.0);
}
编译无误,连接时显示
error LNK2001: unresolved external symbol "void __cdecl DrawLine(double,double)" (?DrawLine@@YAXNN@Z)
error LNK2001: unresolved external symbol "void __cdecl MovePen(double,double)" (?MovePen@@YAXNN@Z)
error LNK2001: unresolved external symbol "void __cdecl InitGraphics(void)" (?InitGraphics@@YAXXZ)
Debug/画直线.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
请问是怎么回事?
怎么样才能解决这个问题?谢谢了。