阅读:1342回复:7
ds 的一个很急的问题
为什么我用vc编译driverstudio的库文件,总是出现很多错误,希望各位大侠指点!!我用得是ds 2.6
[编辑 - 2/28/04 by pd0729] |
|
沙发#
发布于:2004-02-28 22:26
需要安装 DDK,并在DDK环境中编译。
|
|
|
板凳#
发布于:2004-02-29 18:33
我用得是win2000,按照先装vs6.0,再装win2000ddk,之后又装了driverstudio 2.6,之后按照书上说得,将ds的库在vc中编译,可是出现了很多错误;部分错误提示如下:
Configuration: NdisWdm - Win32 NDIS WDM Free-------------------- Compiling... k1394.cpp .\..\include\kmemory.h(84) : error C2061: syntax error : identifier 'MM_PAGE_PRIORITY' .\..\include\kmemory.h(87) : error C2061: syntax error : identifier 'MM_PAGE_PRIORITY' .\..\include\kmemory.h(299) : error C2065: 'MM_PAGE_PRIORITY' : undeclared identifier .\..\include\kmemory.h(299) : error C2146: syntax error : missing ')' before identifier 'priority' .\..\include\kmemory.h(299) : error C2433: 'MapToSystemSpaceSafe' : 'inline' not permitted on data declarations .\..\include\kmemory.h(299) : error C2350: 'KMemory::MapToSystemSpaceSafe' is not a static member .\..\include\kmemory.h(299) : error C2440: 'initializing' : cannot convert from 'int' to 'void *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast .\..\include\kmemory.h(299) : error C2059: syntax error : ')' .\..\include\kmemory.h(300) : error C2143: syntax error : missing ';' before '{' .\..\include\kmemory.h(300) : error C2447: missing function header (old-style formal list?) .\..\include\kmemory.h(306) : error C2061: syntax error : identifier 'MM_PAGE_PRIORITY' .\..\include\kmemory.h(320) : error C2065: 'MmMapLockedPagesSpecifyCache' : undeclared identifier .\..\include\kmemory.h(325) : error C2065: 'BugCheckOnFailure' : undeclared identifier .\..\include\kmemory.h(326) : error C2065: 'Priority' : undeclared identifier .\..\include\kmemory.h(326) : error C2440: '=' : cannot convert from 'int' to 'void *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast |
|
地板#
发布于:2004-03-01 15:54
楼楼上的兄弟说得对!在DDK的环境中编译!
|
|
|
地下室#
发布于:2004-03-01 15:57
我是初学者,怎么在ddk环境中编译,
|
|
5楼#
发布于:2004-03-01 16:00
DEVELIPMENT KITS->2000DDK->CHECKED ENVIRNMENT,到了代码的那个目录,BUILD!搞定!
|
|
|
6楼#
发布于:2004-03-03 11:35
刚刚看了一篇帖子
在driverstdio的tools中有一个setup ddk and start msvc 这样可以设置好ddk环境,然后在这个环境下打开msvc |
|
|
7楼#
发布于:2004-03-03 13:40
问题已经解决,估计我装得那个ddk有问题
[编辑 - 3/4/04 by pd0729] |
|