程序老报这个错误!请高手帮我看看!!!
#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;
}
就这段程序,不复杂,但是老是报错误如下:
App_LoGine.cpp
f:\im\alice\include\basedef.h(48):[_WIN32_WINNT] - default 0x0500
f:\im\alice\include\basedef.h(76):[UNICODE] - NOT defined
Linking...
App_LoGine.obj : error LNK2001: 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
Error executing link.exe.
好象是什么库文件没有,但是这个好象不要什么库文件啊!!!!AppMgr这个类在AppMgr.h里面!!!
急!!!!!!!!!!!!