阅读:2023回复:6
各位大虾,小菜鸟KernelDriver的困惑
我用windriver做了一个监听ps/2鼠标中断的驱动程序,用核心模式生成代码,在vc6.0下编译就出了以下这些错误,希望各位指点迷经,小弟不慎感激.
--------------------Configuration: ps2 - Win32 Debug-------------------- C:\KernelDriver\include\windrvr_int_thread.h(73): Could not find the file pthread.h. C:\KernelDriver\include\kdstdlib.h(23): Could not find the file linux/config.h. C:\KernelDriver\include\kdstdlib.h(28): Could not find the file linux/modversions.h. C:\KernelDriver\include\windrvr.h(137): Could not find the file linux/types.h. C:\KernelDriver\include\windrvr.h(138): Could not find the file linux/string.h. C:\KernelDriver\include\windrvr.h(141): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(143): Could not find the file sys/ioctl.h. C:\KernelDriver\include\windrvr.h(144): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(146): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(149): Could not find the file vxWorks.h. C:\KernelDriver\include\windrvr.h(152): Could not find the file memLib.h. C:\KernelDriver\include\windrvr.h(154): Could not find the file taskLib.h. C:\KernelDriver\include\windrvr.h(155): Could not find the file ioLib.h. C:\KernelDriver\include\windrvr.h(156): Could not find the file iosLib.h. C:\KernelDriver\include\windrvr.h(157): Could not find the file taskLib.h. C:\KernelDriver\include\windrvr.h(158): Could not find the file semLib.h. C:\KernelDriver\include\windrvr.h(159): Could not find the file timers.h. C:\KernelDriver\include\windrvr.h(172): Could not find the file os2.h. C:\KernelDriver\include\kdstdlib.h(23): Could not find the file linux/config.h. C:\KernelDriver\include\kdstdlib.h(28): Could not find the file linux/modversions.h. C:\KernelDriver\include\kd.h(33): Could not find the file wdm.h. C:\KernelDriver\include\kd.h(35): Could not find the file ntddk.h. C:\KernelDriver\include\kd.h(45): Could not find the file basedef.h. C:\KernelDriver\include\kd.h(46): Could not find the file vmm.h. C:\KernelDriver\include\kd.h(47): Could not find the file debug.h. C:\KernelDriver\include\kd.h(49): Could not find the file vmmreg.h. C:\KernelDriver\include\kd.h(51): Could not find the file vxdwraps.h. C:\KernelDriver\include\kd.h(52): Could not find the file vwin32.h. C:\KernelDriver\include\kd.h(53): Could not find the file vpicd.h. C:\KernelDriver\include\kd.h(54): Could not find the file vxdldr.h. C:\KernelDriver\include\kd.h(55): Could not find the file ndis.h. C:\KernelDriver\include\kd.h(56): Could not find the file vtd.h. C:\KernelDriver\include\kd.h(58): Could not find the file regdef.h. C:\KernelDriver\include\windrvr.h(137): Could not find the file linux/types.h. C:\KernelDriver\include\windrvr.h(138): Could not find the file linux/string.h. C:\KernelDriver\include\windrvr.h(141): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(143): Could not find the file sys/ioctl.h. C:\KernelDriver\include\windrvr.h(144): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(146): Could not find the file unistd.h. C:\KernelDriver\include\windrvr.h(149): Could not find the file vxWorks.h. C:\KernelDriver\include\windrvr.h(152): Could not find the file memLib.h. C:\KernelDriver\include\windrvr.h(154): Could not find the file taskLib.h. C:\KernelDriver\include\windrvr.h(155): Could not find the file ioLib.h. C:\KernelDriver\include\windrvr.h(156): Could not find the file iosLib.h. C:\KernelDriver\include\windrvr.h(157): Could not find the file taskLib.h. C:\KernelDriver\include\windrvr.h(158): Could not find the file semLib.h. C:\KernelDriver\include\windrvr.h(159): Could not find the file timers.h. C:\KernelDriver\include\windrvr.h(172): Could not find the file os2.h. Compiling... ps2_driver.c C:/KernelDriver/include/kd.h(45) : fatal error C1083: Cannot open include file: 'basedef.h': No such file or directory ps2_lib.c E:\WINDIRVER\ps2\lib\ps2_lib.h(33) : fatal error C1189: #error : Please define ISA resources using the Wizard Generating Code... Error executing cl.exe. ps2.vxd - 2 error(s), 0 warning(s) The following environment variables were not found $(DDKROOT) |
|
|
沙发#
发布于:2001-08-14 21:50
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于:2002-01-15 14:38
怎么会有那么多的Linux路径?
|
|
地板#
发布于:2002-01-15 20:18
linux?????????????
|
|
|
地下室#
发布于:2002-01-18 09:19
我也遇到同样的问题,请问怎么解决,各位大虾!
|
|
|
5楼#
发布于:2002-03-30 01:10
但是看编译的错误,我觉得应该是环境变量没有设置对,一个是WinDriver本身的路径,另外一个是DDK的路径。
DDK的路径应有ddkroot指定 生成代码,WinDriver本身的路径有错误。 |
|
6楼#
发布于:2002-03-30 01:14
DDKROOT 变量可autoexec.bat中设定如:
DDKROOT=C:\\98DDK :) |
|