fanzi
驱动小牛
驱动小牛
  • 注册日期2004-12-09
  • 最后登录2013-12-19
  • 粉丝1
  • 关注0
  • 积分1004分
  • 威望754点
  • 贡献值0点
  • 好评度93点
  • 原创分0分
  • 专家分0分
阅读:1403回复:3

有谁在xp环境下编译成功过WALTONEY的配套光盘上的程序?

楼主#
更多 发布于:2005-03-07 17:53
小弟初学驱动,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)
张帆的内核学习论坛 http://bbs.kerneldev.com
aiwadgj
驱动老牛
驱动老牛
  • 注册日期2004-11-13
  • 最后登录2020-12-24
  • 粉丝0
  • 关注0
  • 积分119分
  • 威望84点
  • 贡献值0点
  • 好评度14点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2005-03-07 18:22
你那、 是c文件,,还是c++文件啊......?
酒也在沉溺,何时麻醉我抑郁。过去了的一切会平息。。。。。。。
bmyyyud
驱动老牛
驱动老牛
  • 注册日期2002-02-22
  • 最后登录2010-01-21
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望130点
  • 贡献值0点
  • 好评度106点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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的目录。还是不能编译。
我很奇怪为什么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)

编译已通过,是连接的问题,应该是缺少WALTONEY自己写的自定义的函数
滚滚长江东逝水 浪花淘尽英雄 是非成败转头空 青山依旧在 几度夕阳红 白发渔樵江渚上 惯看秋月春风 一壶浊酒喜相逢 古今多少事 尽付笑谈中
bmyyyud
驱动老牛
驱动老牛
  • 注册日期2002-02-22
  • 最后登录2010-01-21
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望130点
  • 贡献值0点
  • 好评度106点
  • 原创分0分
  • 专家分0分
地板#
发布于:2005-03-08 09:41
找到那个文件,加入到连接目录中
滚滚长江东逝水 浪花淘尽英雄 是非成败转头空 青山依旧在 几度夕阳红 白发渔樵江渚上 惯看秋月春风 一壶浊酒喜相逢 古今多少事 尽付笑谈中
游客

返回顶部