请教:VC++6.0中编译的问题
各位达人,请多多帮忙,小菜鸟遇到问题了;
写了个程序,Compile通过,没有错误,没有警告
但是,Link的时候,却没有通过,现在,我贴出错误消息,希望达人们帮忙看看;
--------------------Configuration: yy - Win32 Debug--------------------
Linking...
yy.obj : error LNK2001: unresolved external symbol "void __cdecl Print(struct tm *,struct _Customer *,struct _Customer *)" (?Print@@YAXPAUtm@@PAU_Customer@@1@Z)
yy.obj : error LNK2001: unresolved external symbol "void __cdecl CustomerCome(struct tm *,struct _Customer *,struct _Customer *)" (?CustomerCome@@YAXPAUtm@@PAU_Customer@@1@Z)
yy.obj : error LNK2001: unresolved external symbol "void __cdecl CustomerDepart(struct tm *,struct _Customer *)" (?CustomerDepart@@YAXPAUtm@@PAU_Customer@@@Z)
Debug/yy.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
yy.exe - 4 error(s), 0 warning(s)
[解决办法]
Print这些函数你没有提供实体吧,要么放在cpp里,包含相同明明的h头文件,也可以编译成lib文件或者放在dll里