kxgchina
驱动小牛
驱动小牛
  • 注册日期2002-04-01
  • 最后登录2005-05-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1305回复:6

一个编译的问题,急!!!放分了

楼主#
更多 发布于:2003-05-19 16:09
我在学习使用ds开发,是新手,现在熟悉编译环境,为win98+98DDK+ds2.7,在编译ds的example中的HelloWDM时(仅编译驱动程序一块,不包括那个helloapp部分),编译出现一下错误
--------------------Configuration: HelloWdm - Win32 Checked--------------------
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
d:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
d:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
Compiling...
HelloDev.cpp

随后编译其他的例程也是这样的错误,这是怎么回事啊???急死了
是编译环境的问题吗???
chacker
驱动小牛
驱动小牛
  • 注册日期2002-11-22
  • 最后登录2007-11-15
  • 粉丝0
  • 关注0
  • 积分193分
  • 威望20点
  • 贡献值0点
  • 好评度17点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-05-19 18:01
好象是,有没有检查路径?
kxgchina
驱动小牛
驱动小牛
  • 注册日期2002-04-01
  • 最后登录2005-05-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-05-20 10:56
大侠们,给讲讲吧!我都快疯了,丫的,刚明白了点驱动结构的东西,编译环境又把我给搞蒙了,受不了了。
那位大侠给讲讲如何编译ds的的example啊???例如:例子hellowdm如何编译,完成他的功能,我现在编译helloapp成功,但是编译hellowdm时出现一下提示:
--------------------Configuration: HelloWdm - Win32 Free--------------------
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
c:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
c:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
Compiling resources...
Compiling...
HelloDev.cpp
HelloWdm.cpp
Generating Code...
Linking...
---------------------------Build SoftICE Symbols----------------------------
Compuware NM32 Symbol Translator/Loader version 1.24
(C) Compuware  Technologies, 1996-2001
MODULE=.\\objfre\\i386\\HelloWdm.sys
PROMPT=OFF
SoftICE is not active
Translation of C:\\test\\hellowdm\\sys\\objfre\\i386\\HelloWdm.sys successfully completed

HelloWdm.sys - 0 error(s), 0 warning(s)
--------------------Configuration: HelloWdm - Win32 Checked--------------------
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
c:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
C:\\PROGRA~1\\Compuware\\DriverStudio\\DriverWorks\\Include\\vdw.h(95): Could not find the file ntddk.h.
c:\\98DDK\\inc\\Win98\\wdm.h(3356): Could not find the file alpharef.h.
Compiling resources...
Compiling...
HelloDev.cpp
HelloWdm.cpp
Generating Code...
Linking...
---------------------------Build SoftICE Symbols----------------------------
Compuware NM32 Symbol Translator/Loader version 1.24
(C) Compuware  Technologies, 1996-2001
MODULE=.\\objchk\\i386\\HelloWdm.sys
PROMPT=OFF
SoftICE is not active
Translation of C:\\test\\hellowdm\\sys\\objchk\\i386\\HelloWdm.sys successfully completed

HelloWdm.sys - 0 error(s), 0 warning(s)

这是怎么回事?前面说说不到一些文件,而后面又编译成功0 error(s), 0 warning(s),我感觉好像hellowdm编译成功了,那些找不到的文件与其没关系,是这样吗???
还有,helloapp.exe和hellowdm.sys都编译成功,如何是他们运行,显示驱动运行啊?也就是怎么把hellowdm.sys装上啊???
lpwnd
驱动小牛
驱动小牛
  • 注册日期2003-03-04
  • 最后登录2012-01-20
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-05-20 12:48
添加新硬件,然后找INF文件
kxgchina
驱动小牛
驱动小牛
  • 注册日期2002-04-01
  • 最后登录2005-05-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-05-20 13:47
也就是说编译好,hellowdm.sys以后,还需要编写inf文件,是这样的吗?
kxgchina
驱动小牛
驱动小牛
  • 注册日期2002-04-01
  • 最后登录2005-05-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-05-20 13:48
也就是说编译好,hellowdm.sys以后,还需要编写inf文件,是这样的吗?
上面其余的问题也回答一下把!!!
spring_sky
驱动牛犊
驱动牛犊
  • 注册日期2003-05-12
  • 最后登录2004-06-17
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2003-05-21 15:55
*.inf文件应该已自动生成了
游客

返回顶部