lingxingok 发表于 2007-8-18 14:46

VC两个项目之间的函数的调用,需要怎么做

头文件我加对了,但是出现下面的情况!<BR>   正在创建库 ..\..\..\..\bin\release/MaNGOSScript.lib 和对象 ..\..\..\..\bin\release/MaNGOSScript.exp<BR>item_test.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall Player::GetMemberLevel(unsigned long)" (<a href="mailto:?GetMemberLevel@Player@@QAEXK@Z" target="_blank" >?GetMemberLevel@Player@@QAEXK@Z</A>) ,该符号在函数 "bool __cdecl ItemUse_item_test(class Player *,class Item *)" (<a href="mailto:?ItemUse_item_test@@YA_NPAVPlayer@@PAVItem@@@Z" target="_blank" >?ItemUse_item_test@@YA_NPAVPlayer@@PAVItem@@@Z</A>) 中被引用<BR>..\..\..\..\bin\release/MaNGOSScript.dll : fatal error LNK1120: 1 个无法解析的外部命令<BR><BR>函数声明需要怎么才能让另一个项目调用呢?!急等!


页: [1]

编程论坛