阅读:1649回复:2
passthru报错求解
rotocol.c(811) : error C2275: 'NDIS_STATUS' : illegal use of this type as an expression
d:\ntddk\inc\ddk\ndis.h(4455) : error see declaration of 'NDIS_STATUS' protocol.c(811) : error C2146: syntax error : missing ';' before identifier 'PtReceive' protocol.c(812) : error C2143: syntax error : missing ')' before 'type' protocol.c(812) : error C2198: 'PtReceive' : too few actual parameters protocol.c(819) : error C2059: syntax error : ')' protocol.c(883) : error C2065: 'MacReceiveContext' : undeclared identifier protocol.c(883) : error C4022: 'NdisGetReceivedPacket' : pointer mismatch for actual parameter 2 protocol.c(904) : error C2065: 'HeaderBufferSize' : undeclared identifier protocol.c(931) : error C2065: 'PacketSize' : undeclared identifier protocol.c(931) : error C2065: 'LookAheadBufferSize' : undeclared identifier protocol.c(948) : error C2065: 'HeaderBuffer' : undeclared identifier protocol.c(948) : error C4022: 'memcpy' : pointer mismatch for actual parameter 2 protocol.c(952) : error C2065: 'LookAheadBuffer' : undeclared identifier protocol.c(952) : error C4022: 'memcpy' : pointer mismatch for actual parameter 2 protocol.c(985) : error C2065: 'pPacketContent' : undeclared identifier protocol.c(985) : error C4022: 'NdisFreeMemory' : pointer mismatch for actual parameter 1 protocol.c(985) : error C2065: 'BUFFER_SIZE' : undeclared identifier protocol.c(1002) : error C4047: '==' : 'int ' differs in levels of indirection from 'void *' protocol.c(1031) : error C4022: 'memcpy' : pointer mismatch for actual parameter 2 protocol.c(1034) : error C4022: 'memcpy' : pointer mismatch for actual parameter 2 protocol.c(1069) : error C4022: 'NdisTransferData' : pointer mismatch for actual parameter 3 protocol.c(1133) : error C2143: syntax error : missing ';' before 'type' protocol.c(1189) : error C2061: syntax error : identifier 'PtReceivePacket' protocol.c(1189) : error C2059: syntax error : ';' protocol.c(1190) : error C2059: syntax error : 'type' Compiling - miniport.c for i386 Compiling - myioctl.c for i386 BUILD: Compile errors: not linking f:\passthru20070816 directory BUILD: Done 6 files compiled - 26 Errors 请高手讲解一下 |
|
沙发#
发布于:2007-08-20 17:30
解决了.......
|
|
板凳#
发布于:2007-08-23 17:31
你是不是source 文件没写好,还是漏了头文件passthru.h
你是用什么编译调试的??platformbuilder还是VC++ |
|
|