阅读:2817回复:2
请教各位高手关于wdn驱动程序的问题!!
在编译wdn驱动程序的时候,出现了如下问题:
d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2146: syntax error : missing \';\' before identifier \'Guid\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'LPCGUID\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'Guid\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2146: syntax error : missing \';\' before identifier \'InstanceCount\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'InstanceCount\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2146: syntax error : missing \';\' before identifier \'Flags\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'Flags\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2065: \'PWMI_QUERY_REGINFO\' : undeclared identifier d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2100: illegal indirection d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2501: \'NTSTATUS\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2143: syntax error : missing \';\' before \'(\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \')\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \';\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2501: \'IN\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C1004: unexpected end of file found d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2146: syntax error : missing \';\' before identifier \'Guid\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'LPCGUID\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(40) : error C2501: \'Guid\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2146: syntax error : missing \';\' before identifier \'InstanceCount\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(41) : error C2501: \'InstanceCount\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2146: syntax error : missing \';\' before identifier \'Flags\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'ULONG\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(42) : error C2501: \'Flags\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2065: \'PWMI_QUERY_REGINFO\' : undeclared identifier d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2100: illegal indirection d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2501: \'NTSTATUS\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(47) : error C2143: syntax error : missing \';\' before \'(\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \')\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2146: syntax error : missing \';\' before identifier \'PDEVICE_OBJECT\' d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C2501: \'IN\' : missing storage-class or type specifiers d:\\progra~1\\ntddk\\inc\\ddk\\wdm\\wmilib.h(48) : error C1004: unexpected end of file found |
|
沙发#
发布于:2005-04-06 08:40
重新安装DDK,不要装在带空格的路径下。
|
|
|
板凳#
发布于:2005-04-06 10:17
我试过了,还是不行?
|
|