阅读:1696回复:5
请教,Link 错误
在做MFC和驱动程序通信MFC程序Link出现的问题,请问是不是少加了库文件啊?
link设置:setupapi.lib /nologo /subsystem:windows /incremental:yes /pdb:\"Debug/MFC_TestT1.pdb\" /debug /machine:I386 /out:\"Debug/MFC_TestT1.exe\" /pdbtype:sept --------------------Configuration: MFC_TestT1 - Win32 Debug-------------------- Linking with DDK linker... LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored MFC_TestT1.obj : error LNK2001: unresolved external symbol __RTC_Shutdown MFC_TestT1Dlg.obj : error LNK2001: unresolved external symbol __RTC_Shutdown OpenByIntf.obj : error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function \"void * __cdecl OpenByInterface(struct _GUID *,unsigned long,unsigned long *)\" (?OpenByInterface@@YAPAXPAU_GUID@@KPAK@Z) MFC_TestT1.obj : error LNK2001: unresolved external symbol __RTC_InitBase MFC_TestT1Dlg.obj : error LNK2001: unresolved external symbol __RTC_InitBase OpenByIntf.obj : error LNK2001: unresolved external symbol __RTC_InitBase MFC_TestT1.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function \"public: __thiscall CMFC_TestT1App::CMFC_TestT1App(void)\" (??0CMFC_TestT1App@@QAE@XZ) MFC_TestT1Dlg.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp OpenByIntf.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function \"void * __cdecl OpenByInterface(struct _GUID *,unsigned long,unsigned long *)\" (?OpenByInterface@@YAPAXPAU_GUID@@KPAK@Z) MFC_TestT1.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function \"public: virtual int __thiscall CMFC_TestT1App::InitInstance(void)\" (?InitInstance@CMFC_TestT1App@@UAEHXZ) MFC_TestT1Dlg.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 OpenByIntf.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 Debug/MFC_TestT1.exe : fatal error LNK1120: 4 unresolved externals Error executing link.exe. |
|
沙发#
发布于:2005-03-14 16:42
你这是在编译什么?感觉好像是用DDK在编译MFC程序。
用DDK编译驱动,MFC的程序就直接用VC就可以了。 |
|
|
板凳#
发布于:2005-03-14 17:13
发到我的邮箱,,可以给你搞搞,,,这种错误不好说的。。
aiwadgj@eyou.com ;) |
|
|
地板#
发布于:2005-03-16 11:20
猜测一下,确定这些函数都在什么库和文件中,
万事都有源头,找一找,你就熟悉了 |
|
地下室#
发布于:2005-03-16 13:29
MSVCRT.LIB
|
|
5楼#
发布于:2005-03-16 14:13
找到问题了,犯了个低级错误。
DDK Build Settings 选项卡设下就好了,开始一直在vc settings 里找问题,所以一直没解决,谢谢各位了。 [编辑 - 5/18/05 by ewater168] |
|