wm_create
驱动牛犊
驱动牛犊
  • 注册日期2004-11-20
  • 最后登录2009-07-19
  • 粉丝0
  • 关注0
  • 积分90分
  • 威望11点
  • 贡献值0点
  • 好评度11点
  • 原创分0分
  • 专家分0分
阅读:3526回复:1

为什么我编译DDK的SRC下的SPTI 会有这么多错误提示?

楼主#
更多 发布于:2005-01-17 20:58
为什么我编译DDK的SRC下的SPTI 会有这么多错误提示?
--------------------Configuration: spti - Win32 Debug--------------------
Compiling...
spti.c
c:\ntddk\inc\ntddscsi.h(100) : error C2061: syntax error : identifier 'ULONG_PTR'
c:\ntddk\inc\ntddscsi.h(103) : error C2059: syntax error : '}'
c:\ntddk\src\storage\class\spti\spti.h(21) : error C2061: syntax error : identifier 'SCSI_PASS_THROUGH'
c:\ntddk\src\storage\class\spti\spti.h(25) : error C2059: syntax error : '}'
c:\ntddk\src\storage\class\spti\spti.h(46) : error C2081: 'PSCSI_PASS_THROUGH_WITH_BUFFERS' : name in formal parameter list illegal
c:\ntddk\src\storage\class\spti\spti.h(46) : error C2081: 'ULONG' : name in formal parameter list illegal
c:\ntddk\src\storage\class\spti\spti.c(50) : error C2065: 'SCSI_PASS_THROUGH_WITH_BUFFERS' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(50) : error C2146: syntax error : missing ';' before identifier 'sptwb'
c:\ntddk\src\storage\class\spti\spti.c(50) : error C2065: 'sptwb' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(51) : error C2275: 'SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER' : illegal use of this type as an expression
        c:\ntddk\src\storage\class\spti\spti.h(31) : see declaration of 'SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER'
c:\ntddk\src\storage\class\spti\spti.c(51) : error C2146: syntax error : missing ';' before identifier 'sptdwb'
c:\ntddk\src\storage\class\spti\spti.c(51) : error C2065: 'sptdwb' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(52) : error C2275: 'UCHAR' : illegal use of this type as an expression
        c:\program files\microsoft visual studio\vc98\include\windef.h(47) : see declaration of 'UCHAR'
c:\ntddk\src\storage\class\spti\spti.c(52) : error C2146: syntax error : missing ';' before identifier 'buffer'
c:\ntddk\src\storage\class\spti\spti.c(52) : error C2065: 'buffer' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(52) : error C2109: subscript requires array or pointer type
c:\ntddk\src\storage\class\spti\spti.c(53) : error C2275: 'UCHAR' : illegal use of this type as an expression
        c:\program files\microsoft visual studio\vc98\include\windef.h(47) : see declaration of 'UCHAR'
c:\ntddk\src\storage\class\spti\spti.c(53) : error C2146: syntax error : missing ';' before identifier 'string'
c:\ntddk\src\storage\class\spti\spti.c(53) : error C2065: 'string' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(53) : error C2109: subscript requires array or pointer type
c:\ntddk\src\storage\class\spti\spti.c(54) : error C2275: 'ULONG' : illegal use of this type as an expression
        c:\program files\microsoft visual studio\vc98\include\windef.h(43) : see declaration of 'ULONG'
c:\ntddk\src\storage\class\spti\spti.c(54) : error C2146: syntax error : missing ';' before identifier 'length'
c:\ntddk\src\storage\class\spti\spti.c(54) : error C2065: 'length' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(55) : error C2065: 'errorCode' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(56) : error C2065: 'returned' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(57) : error C2065: 'sectorSize' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(69) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int '
c:\ntddk\src\storage\class\spti\spti.c(69) : warning C4024: 'strcpy' : different types for formal and actual parameter 1
c:\ntddk\src\storage\class\spti\spti.c(70) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int '
c:\ntddk\src\storage\class\spti\spti.c(70) : warning C4024: 'strcat' : different types for formal and actual parameter 1
c:\ntddk\src\storage\class\spti\spti.c(88) : warning C4047: 'function' : 'const char *' differs in levels of indirection from 'int '
c:\ntddk\src\storage\class\spti\spti.c(88) : warning C4024: 'CreateFileA' : different types for formal and actual parameter 1
c:\ntddk\src\storage\class\spti\spti.c(111) : warning C4022: 'DeviceIoControl' : pointer mismatch for actual parameter 5
c:\ntddk\src\storage\class\spti\spti.c(125) : warning C4022: 'PrintInquiryData' : pointer mismatch for actual parameter 1
c:\ntddk\src\storage\class\spti\spti.c(151) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(151) : error C2065: 'SCSI_PASS_THROUGH' : undeclared identifier
c:\ntddk\src\storage\class\spti\spti.c(152) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(153) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(154) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(155) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(156) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(157) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(158) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(159) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(160) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(161) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(162) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(163) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(164) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(165) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(166) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(167) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(179) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'int *'
c:\ntddk\src\storage\class\spti\spti.c(179) : warning C4024: 'PrintStatusResults' : different types for formal and actual parameter 3
c:\ntddk\src\storage\class\spti\spti.c(186) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(187) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(188) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(189) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(190) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(191) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(192) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(193) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(194) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(195) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(196) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(197) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(198) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(199) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(200) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(201) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(202) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(214) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'int *'
c:\ntddk\src\storage\class\spti\spti.c(214) : warning C4024: 'PrintStatusResults' : different types for formal and actual parameter 3
c:\ntddk\src\storage\class\spti\spti.c(222) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(223) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(224) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(225) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(226) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(227) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(228) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(229) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(230) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(231) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(232) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(233) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(234) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(235) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(236) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(247) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'int *'
c:\ntddk\src\storage\class\spti\spti.c(247) : warning C4024: 'PrintStatusResults' : different types for formal and actual parameter 3
c:\ntddk\src\storage\class\spti\spti.c(257) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(258) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(259) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(260) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(261) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(262) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(263) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(264) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(265) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(266) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(267) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(268) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(269) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(270) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(271) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(272) : error C2059: syntax error : ')'
c:\ntddk\src\storage\class\spti\spti.c(283) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'int *'
c:\ntddk\src\storage\class\spti\spti.c(283) : warning C4024: 'PrintStatusResults' : different types for formal and actual parameter 3
c:\ntddk\src\storage\class\spti\spti.c(294) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(295) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(296) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(297) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(298) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(299) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(300) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(301) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(302) : error C2224: left of '.spt' must have struct/union type
c:\ntddk\src\storage\class\spti\spti.c(302) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

spti.exe - 102 error(s), 16 warning(s)
wm_create
驱动牛犊
驱动牛犊
  • 注册日期2004-11-20
  • 最后登录2009-07-19
  • 粉丝0
  • 关注0
  • 积分90分
  • 威望11点
  • 贡献值0点
  • 好评度11点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-01-20 09:32
哪位帮我解答一下?
游客

返回顶部