阅读:1521回复:2
为什么ntddk.h打不开啊
我只写一句话
#include \"ntddk.h\"编译的时候: 报告错误: e:\\ntddk\\inc\\ddk\\ntddk.h(370) : error C2146: syntax error : missing \';\' before identifier \'Lock\' e:\\ntddk\\inc\\ddk\\ntddk.h(370) : error C2501: \'PULONG_PTR\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(370) : error C2501: \'Lock\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(824) : error C2146: syntax error : missing \';\' before identifier \'KSPIN_LOCK\' e:\\ntddk\\inc\\ddk\\ntddk.h(824) : fatal error C1004: unexpected end of file found Error executing cl.exe. test2.obj - 5 error(s), 0 warning(s) 这是怎么回事?难道标准也有错误? 还是其他原因? 请各位大虾帮忙? 使用vc++6.0 |
|
沙发#
发布于:2003-03-20 21:07
我已经在Vc++里面设置路径啊?
怎么还不能编译? 那位大虾帮帮忙啊? |
|
板凳#
发布于:2003-03-20 23:05
我把编译选项改了改
在VC中 alt-f7 选中 c/c++ category选中preprocessor additional include directories 中 填入 c:\\ddk\\inc,C:\\Program Files\\NuMega\\DriverStudio\\VtoolsD\\include 结果出现无数的错误 --------------------Configuration: test2 - Win32 Debug-------------------- Compiling... test2.cpp e:\\ntddk\\inc\\ddk\\ntddk.h(7914) : error C2146: syntax error : missing \';\' before identifier \'InterruptTime\' e:\\ntddk\\inc\\ddk\\ntddk.h(7914) : error C2501: \'InterruptTime\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(7928) : error C2146: syntax error : missing \';\' before identifier \'SystemTime\' e:\\ntddk\\inc\\ddk\\ntddk.h(7928) : error C2086: \'KSYSTEM_TIME\' : redefinition e:\\ntddk\\inc\\ddk\\ntddk.h(7928) : error C2501: \'SystemTime\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(7935) : error C2146: syntax error : missing \';\' before identifier \'TimeZoneBias\' e:\\ntddk\\inc\\ddk\\ntddk.h(7935) : error C2086: \'KSYSTEM_TIME\' : redefinition e:\\ntddk\\inc\\ddk\\ntddk.h(7935) : error C2501: \'TimeZoneBias\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(9101) : error C2146: syntax error : missing \';\' before identifier \'ContextRecord\' e:\\ntddk\\inc\\ddk\\ntddk.h(9101) : error C2501: \'PCONTEXT\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(9101) : error C2501: \'ContextRecord\' : missing storage-class or type specifiers e:\\ntddk\\inc\\ddk\\ntddk.h(10051) : error C2146: syntax error : missing \';\' before identifier \'KeTickCount\' e:\\ntddk\\inc\\ddk\\ntddk.h(10051) : fatal error C1004: unexpected end of file found Error executing cl.exe. test2.obj - 13 error(s), 0 warning(s) 拜托各位大虾了, 入门级的新手 盼望各位指点啊! |
|