帮我看看这个连接错误!!!!
包错如下:
unresolved external symbol "public: int __thiscall AppMgr::Start(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" (?Start@AppMgr@@QAEHPAUHINSTANCE__@@0PADH@Z)
App_LoGine.obj : error LNK2001: unresolved external symbol "class AppMgr theAppMgr" (?theAppMgr@@3VAppMgr@@A)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/App_LoGine.exe : fatal error LNK1120: 3 unresolved externals
象这样的连接错误是怎么回事啊??我不知道怎样来调试这样的错误:
代码如下:
#include "stdafx.h"
#include "AppMgr.h"
CRITICAL_SECTION g_cs;
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
::InitializeCriticalSection(&g_cs);
if(!theAppMgr.Start(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
{ //error
MessageBox(NULL, "檬扁拳累诀阑 肯丰且 荐 绝嚼聪促.\r\n角青吝牢 促弗 橇肺弊伐阑 辆丰窍绊 促矫 矫档秦 林绞矫坷", "Sayclub Logine", NULL);
::DeleteCriticalSection(&g_cs);
return 1;
}
::DeleteCriticalSection(&g_cs);
return 0;
}