阅读:1403回复:3
有谁在xp环境下编译成功过WALTONEY的配套光盘上的程序?
小弟初学驱动,WALTONEY的盘里有个setup就安装了,里面有个设置就是2000ddk和98ddk和softice的目录,我想2000和xp差不多就2000的目录设置成了C:\\WINDDK\\2462(我的xpddk的目录),其他的没有管。开始用vc打开\\Chap3\\FILEIO\\sys的dsp文件,编译失败,说是98ddk和2000ddk设置不对,进入Alt+F7(setting),将所有涉及98ddk的通通删除,还改了ntddk的目录。还是不能编译。
我很奇怪为什么98和2000的为什么WALTONEY要一起编译,而修改后还是不能编译。 出错如下: --------------------Configuration: fileio - Win32 Checked-------------------- Linking with DDK linker... LINK : warning LNK4224: /PDB:NONE is no longer supported; ignored LINK : warning LNK4224: /DEBUGTYPE:BOTH is no longer supported; ignored LINK : warning LNK4044: unrecognized option \'optidata\'; ignored LINK : warning LNK4224: /DEBUG:NOTMAPPED is no longer supported; ignored Control.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function \"long __stdcall DispatchControl(struct _DEVICE_OBJECT *,struct _IRP *)\" (?DispatchControl@@YGJPAU_DEVICE_OBJECT@@PAU_IRP@@@Z) DriverEntry.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _DriverEntry@8 fileio.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp ReadWrite.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function \"long __stdcall DispatchCreate(struct _DEVICE_OBJECT *,struct _IRP *)\" (?DispatchCreate@@YGJPAU_DEVICE_OBJECT@@PAU_IRP@@@Z) Control.obj : error LNK2001: unresolved external symbol __RTC_Shutdown DriverEntry.obj : error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function _DriverEntry@8 fileio.obj : error LNK2001: unresolved external symbol __RTC_Shutdown ReadWrite.obj : error LNK2001: unresolved external symbol __RTC_Shutdown Control.obj : error LNK2001: unresolved external symbol __RTC_InitBase DriverEntry.obj : error LNK2001: unresolved external symbol __RTC_InitBase fileio.obj : error LNK2001: unresolved external symbol __RTC_InitBase ReadWrite.obj : error LNK2001: unresolved external symbol __RTC_InitBase DriverEntry.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function \"long __stdcall AddDevice(struct _DRIVER_OBJECT *,struct _DEVICE_OBJECT *)\" (?AddDevice@@YGJPAU_DRIVER_OBJECT@@PAU_DEVICE_OBJECT@@@Z) fileio.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function \"long __stdcall Win2KOpenFile(unsigned short *,unsigned char,void * *)\" (?Win2KOpenFile@@YGJPAGEPAPAX@Z) ReadWrite.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 fileio.obj : error LNK2019: unresolved external symbol _Win98OpenFile referenced in function \"long __stdcall OpenFile(unsigned short *,unsigned char,void * *)\" (?OpenFile@@YGJPAGEPAPAX@Z) fileio.obj : error LNK2019: unresolved external symbol _Win98CloseFile referenced in function \"long __stdcall CloseFile(void *)\" (?CloseFile@@YGJPAX@Z) fileio.obj : error LNK2019: unresolved external symbol _Win98GetFileSize referenced in function \"unsigned __int64 __stdcall GetFileSize(void *)\" (?GetFileSize@@YG_KPAX@Z) fileio.obj : error LNK2019: unresolved external symbol _Win98ReadFile referenced in function \"long __stdcall ReadFile(void *,void *,unsigned long,unsigned long *)\" (?ReadFile@@YGJPAX0KPAK@Z) fileio.obj : error LNK2019: unresolved external symbol _Win98WriteFile referenced in function \"long __stdcall WriteFile(void *,void *,unsigned long,unsigned long *)\" (?WriteFile@@YGJPAX0KPAK@Z) objchk\\i386\\fileio.sys : fatal error LNK1120: 9 unresolved externals Error executing link.exe. fileio.sys - 21 error(s), 4 warning(s) |
|
|
沙发#
发布于:2005-03-07 18:22
你那、 是c文件,,还是c++文件啊......?
|
|
|
板凳#
发布于:2005-03-08 09:38
小弟初学驱动,WALTONEY的盘里有个setup就安装了,里面有个设置就是2000ddk和98ddk和softice的目录,我想2000和xp差不多就2000的目录设置成了C:\\WINDDK\\2462(我的xpddk的目录),其他的没有管。开始用vc打开\\Chap3\\FILEIO\\sys的dsp文件,编译失败,说是98ddk和2000ddk设置不对,进入Alt+F7(setting),将所有涉及98ddk的通通删除,还改了ntddk的目录。还是不能编译。 编译已通过,是连接的问题,应该是缺少WALTONEY自己写的自定义的函数 |
|
|
地板#
发布于:2005-03-08 09:41
找到那个文件,加入到连接目录中
|
|
|