阅读:1317回复:6
一个编译的问题,急!!!放分了
我在学习使用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 随后编译其他的例程也是这样的错误,这是怎么回事啊???急死了 是编译环境的问题吗??? |
|
沙发#
发布于:2003-05-19 18:01
好象是,有没有检查路径?
|
|
板凳#
发布于: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装上啊??? |
|
地板#
发布于:2003-05-20 12:48
添加新硬件,然后找INF文件
|
|
地下室#
发布于:2003-05-20 13:47
也就是说编译好,hellowdm.sys以后,还需要编写inf文件,是这样的吗?
|
|
5楼#
发布于:2003-05-20 13:48
也就是说编译好,hellowdm.sys以后,还需要编写inf文件,是这样的吗?
上面其余的问题也回答一下把!!! |
|
6楼#
发布于:2003-05-21 15:55
*.inf文件应该已自动生成了
|
|