些错误是怎么产生的,如何解决啊?

[复制链接]
查看11 | 回复1 | 2010-9-13 14:07:00 | 显示全部楼层 |阅读模式
--------------------Configuration: WndProc - Win32 Debug--------------------
Linking...
WndProc.obj : error LNK2001: unresolved external symbol "public: __thiscall CMainWnd::CMainWnd(void)" (??0CMainWnd@@QAE@XZ)
WndProc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainWnd::SetInstance(struct HINSTANCE__ *)" (?SetInstance@CMainWnd@@QAEXPAUHINSTANCE__@@@Z)
WndProc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainWnd::OnCommand(struct HWND__ *,int,struct HWND__ *,unsigned int)" (?OnCommand@CMainWnd@@QAEXPAUHWND__@@H0I@Z)
WndProc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainWnd::OnKeyDown(struct HWND__ *,unsigned int,int,int,unsigned int)" (?OnKeyDown@CMainWnd@@QAEXPAUHWND__@@IHHI@Z)
WndProc.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainWnd::OnDestroy(struct HWND__ *)" (?OnDestroy@CMainWnd@@QAEXPAUHWND__@@@Z)
WndProc.obj : error LNK2001: unresolved external symbol "public: int __thiscall CMainWnd::OnCreate(struct HWND__ *,struct tagCREATESTRUCTA *)" (?OnCreate@CMainWnd@@QAEHPAUHWND__@@PAUtagCREATESTRUCTA@@@Z)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/WndProc.exe : fatal error LNK1120: 7 unresolved externals
执行 link.exe 时出错.
WndProc.exe - 1 error(s), 0 warning(s)
怎样加进libcd.lib这个库啊

回复

使用道具 举报

千问 | 2010-9-13 14:07:00 | 显示全部楼层
你调用了一些没有定义的函数。libcd.lib这个库是不是没有加进来 #pragma comment("lib","libcd.lib")放在#include语句的下面
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行