|
发表于 2004-6-21 07:56:00
|
显示全部楼层
Re:发布一个HoHo 5.x的静态库版本
不行哦。我用新的.h文件和.lib文件编译,出现这样的提示:
Element.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iBitmapX * g_pScreenBuffer" (__imp_?g_pScreenBuffer@@3PAViBitmapX@@A)
GameMap.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iBitmapX * g_pScreenBuffer" (__imp_?g_pScreenBuffer@@3PAViBitmapX@@A)
MainWnd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iKeyboard * __cdecl CreateKeyboard(struct HINSTANCE__ *,struct HWND__ *)" (__imp_?CreateKeyboard@@YAPAViKeyboard@@PAUHINSTANCE__@@PAUHWND__@@@Z)
MainWnd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iMouse * __cdecl CreateMouse(struct HINSTANCE__ *,struct HWND__ *)" (__imp_?CreateMouse@@YAPAViMouse@@PAUHINSTANCE__@@PAUHWND__@@@Z)
MainWnd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iDisplay * g_pDisplay" (__imp_?g_pDisplay@@3PAViDisplay@@A)
MainWnd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class iDisplay * __cdecl CreatePlane2D(struct HWND__ *,int,int,bool,bool)" (__imp_?CreatePlane2D@@YAPAViDisplay@@PAUHWND__@@HH_N1@Z)
F:\DevApp\Plane\Plane.exe : fatal error LNK1120: 5 unresolved externals
加了语句:#pragma comment(lib,"HoHo_Base.lib")和把lib文件加到工程中也不行。
看来要作调整才行啊。 |
|