DriverStudio中的VdwLibs编译问题,请各路高手分析一下,谢谢!
安装环境:
WindowsXP sp2 + VS2005 + DDK6000 + DriverStudio 3.2
用VS2005打开VdwLibs工程编译时出现以下错误,请高手分析一下,谢谢!
------ Using D:\WinDDK\6000 DDK
1>------ Build started: Project: VdwLibs, Configuration: WDM Checked Win32 ------
1>Compiling...
1>suballoc.cpp
1>..\..\Common\Source\suballoc.cpp(336) : error C2065: 'pnode' : undeclared identifier
1>..\..\Common\Source\suballoc.cpp(352) : error C2227: left of '->m_larger' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\Common\Source\suballoc.cpp(354) : error C2227: left of '->m_larger' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\Common\Source\suballoc.cpp(355) : error C2227: left of '->m_larger' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>..\..\Common\Source\suballoc.cpp(355) : error C2227: left of '->m_smaller' must point to class/struct/union/generic type
1>..\..\Common\Source\suballoc.cpp(359) : error C2227: left of '->m_larger' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>kstlphs.cpp
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\common\include\stl\cstdlib(25) : fatal error C1083: Cannot open include file: '../crt/cstdlib': No such file or directory
1>kstlnphs.cpp
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\common\include\stl\cstdlib(25) : fatal error C1083: Cannot open include file: '../crt/cstdlib': No such file or directory
1>kstllmcb.cpp
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\common\include\stl\cstdlib(25) : fatal error C1083: Cannot open include file: '../crt/cstdlib': No such file or directory
1>kstl.cpp
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\common\include\stl\cstdlib(25) : fatal error C1083: Cannot open include file: '../crt/cstdlib': No such file or directory
1>kustring.cpp
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\DriverWorks\include\kmemory.h(350) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>.\kustring.cpp(309) : error C2440: 'initializing' : cannot convert from 'PWCH' to 'PUSHORT'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\kustring.cpp(310) : error C2440: 'initializing' : cannot convert from 'PWCH' to 'PUSHORT'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>kusb.cpp
1>.\kusb.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>d:\DriverStudio\DriverWorks\include\util.h(143) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>d:\DriverStudio\DriverWorks\include\kmemory.h(350) : warning C4996: 'MmMapLockedPages' was declared deprecated
1> D:\WinDDK\6000\inc\ddk\wdm.h(16806) : see declaration of 'MmMapLockedPages'
1>.\kusb.cpp(1370) : error C2065: 'OpenPipes' : undeclared identifier
1>.\kusb.cpp(1638) : error C2065: 'i' : undeclared identifier
1>.\kusb.cpp(1638) : error C2228: left of '.InterfaceDescriptor' must have class/struct/union
1>.\kusb.cpp(2218) : error C2065: 'j' : undeclared identifier
1>Generating Code...
1>Build log was saved at "file://d:\DriverStudio\DriverWorks\source\obj\i386\wdmchecked\BuildLog.htm"
1>VdwLibs - 16 error(s), 9 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========