主题:请问MFC重新编译的问题,谢谢大侠!!
awlfa
[专家分:10] 发布于 2009-03-20 16:14:00
请问MFC重新编译的问题,就是我用MFC向导编译了一个小程序之后(程序名为E0301)。然后关闭整个VC程序。重新打开VC,并打开了E0301.cpp,重新编译,编译的时候没有报错,但是链接的时候却报了8个错误,总是链接不了,请问这是怎么回事?那位大侠告诉我下,谢谢哦
回复列表 (共2个回复)
沙发
星绽紫辉 [专家分:1700] 发布于 2009-03-20 18:11:00
请把错误帖出来。。。
板凳
awlfa [专家分:10] 发布于 2009-03-21 00:36:00
谢谢你啦。下面是提示的错误,有8处,我都晕了。
E0301.obj : error LNK2001: unresolved external symbol "public: __thiscall CMainFrame::CMainFrame(void)" (??0CMainFrame@@QAE@XZ)
E0301.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CE0301Doc::classCE0301Doc" (?classCE0301Doc@CE0301Doc@@2UCRuntimeClass@@B)
E0301.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CChildFrame::classCChildFrame" (?classCChildFrame@CChildFrame@@2UCRuntimeClass@@B)
E0301.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CE0301View::classCE0301View" (?classCE0301View@CE0301View@@2UCRuntimeClass@@B)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/E0301.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
E0301.exe - 8 error(s), 0 warning(s)
我来回复