阅读:1127回复:5
请教一个问题(谢谢)
我在用VC编译驱动时,出现了下面的错误,百思不得其解:
C:\\Program Files\\Microsoft Visual Studio\\VC98 INCLUDE\\NTDDK.h(370) : error C2146: syntax error : missing \';\' before dentifier \'Lock\' C:\\Program Files\\Microsoft Visual Studio\\VC98 INCLUDE\\NTDDK.h(370) : error C2501: \'PULONG_PTR\' : missing storage-class or type specifiers C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(370) : error C2501: \'Lock\' : missing storage-class or type specifiers C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(824) : error C2146: syntax error : missing \';\' before identifier \'KSPIN_LOCK\' C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(824) : fatal error C1004: unexpected end of file found Unicode.cpp C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(370) : error C2146: syntax error : missing \';\' before identifier \'Lock\' C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(370) : error C2501: \'PULONG_PTR\' : missing storage-class or type specifiers C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(370) : error C2501: \'Lock\' : missing storage-class or type specifiers C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(824) : error C2146: syntax error : missing \';\' before identifier \'KSPIN_LOCK\' C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE\\NTDDK.h(824) : fatal error C1004: unexpected end of file found Error executing cl.exe. 难道是ntddk.h被我改动了吗?还是别的什么原因呢? 就算是我不小心改了ntddk.h,可是在那些行我也没有发现什么错误呀,谢谢回复。 |
|
沙发#
发布于:2003-05-29 21:51
首先检查环境变量的设置
|
|
板凳#
发布于:2003-05-29 21:54
怎么检查,谢谢
|
|
地板#
发布于:2003-06-02 18:41
你不会是用 VC 直接编译驱动程序吧??
|
|
地下室#
发布于:2003-06-02 18:53
呵呵,是呀,不是吗?
那该怎么办呢? |
|
5楼#
发布于:2003-06-02 23:45
呵呵,是呀,不是吗? 用DDK的build试一试! |
|