VC6.0驱动编译后切换回编译MFC出错

前一段时间使用VC6.0编译windows驱动,然后突然要编译MFC工程,发现编译出错,出错信息如下:


Linking...
LINK : warning LNK4224: /PDBTYPE is no longer supported;  ignored
StartProcess.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
StartProcessDlg.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
StartProcess.obj : error LNK2001: unresolved external symbol __RTC_InitBase
StartProcessDlg.obj : error LNK2001: unresolved external symbol __RTC_InitBase
StartProcess.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "public: __thiscall CStartProcessApp::CStartProcessApp(void)" (??0CStartProcessApp@@QAE@XZ)
StartProcessDlg.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "public: virtual void * __thiscall CAboutDlg::`scalar deleting destructor'(unsigned int)" (??_GCAboutDlg@@UAEPAXI@Z)
StartProcess.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "public: virtual int __thiscall CStartProcessApp::InitInstance(void)" (?InitInstance@CStartProcessApp@@UAEHXZ)
StartProcessDlg.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
Debug/StartProcess.exe : fatal error LNK1120: 4 unresolved externals


从中可以看出一定是VC6.0的配置设置错误导致的,所以经过探索发现,在菜单栏上,工具-选项-目录,目录-可执行文件,这一栏添加出错,我把DDK的BIN目录设置进去了,而且还放在第一位置,Bin目录下面有CL链接器,当然出首先找到ddk的链接器,去link MFC的程序肯定出问题,所以删除或者以后MFC的目录就没问题了。

你可能感兴趣的:(VC6.0驱动编译后切换回编译MFC出错)