cqs103
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2016回复:6

我的wdm.h为什么会出错??

楼主#
更多 发布于:2004-04-21 11:40
Compiling...
 isousb.c
E:\\USB\\iso\\wdm.h(354) : error C2061: syntax error : identifier \'PULONG_PTR\'
E:\\USB\\iso\\wdm.h(355) : error C2059: syntax error : \'}\'
E:\\USB\\iso\\wdm.h(594) : error C2061: syntax error : identifier \'KSPIN_LOCK\'E:\\USB\\iso\\wdm.h(594) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(595) : error C2143: syntax error : missing \'{\' before \'*\'
E:\\USB\\iso\\wdm.h(2469) : error C2061: syntax error : identifier \'ULONG_PTR\'
E:\\USB\\iso\\wdm.h(2470) : error C2059: syntax error : \'}\'
E:\\USB\\iso\\wdm.h(2488) : error C2146: syntax error : missing \')\' before identifier \'IoStatusBlock\'
E:\\USB\\iso\\wdm.h(2488) : error C2081: \'PIO_STATUS_BLOCK\' : name in formal parameter list illegal
E:\\USB\\iso\\wdm.h(2488) : error C2061: syntax error : identifier \'IoStatusBlock\'
E:\\USB\\iso\\wdm.h(2488) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(2488) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(2490) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5496) : error C2061: syntax error : identifier \'ULONG_PTR\'
E:\\USB\\iso\\wdm.h(5497) : error C2059: syntax error : \'}\'
E:\\USB\\iso\\wdm.h(5499) : error C2143: syntax error : missing \'{\' before \'*\'
E:\\USB\\iso\\wdm.h(5525) : error C2061: syntax error : identifier \'PEXCEPTION_RECORD\'
E:\\USB\\iso\\wdm.h(5527) : error C2059: syntax error : \'}\'
E:\\USB\\iso\\wdm.h(5623) : error C2061: syntax error : identifier \'KSPIN_LOCK\'
E:\\USB\\iso\\wdm.h(5625) : error C2059: syntax error : \'}\'
E:\\USB\\iso\\wdm.h(5694) : error C2146: syntax error : missing \')\' before identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5694) : error C2061: syntax error : identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5694) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5694) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5697) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5702) : error C2146: syntax error : missing \')\' before identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5702) : error C2061: syntax error : identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5702) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5702) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5705) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5710) : error C2146: syntax error : missing \')\' before identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5710) : error C2061: syntax error : identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5710) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5711) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5720) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5720) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5720) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5721) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5726) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5726) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5726) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5726) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5728) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5733) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5733) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5733) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5733) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5736) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5741) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5741) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5741) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5742) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5747) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5747) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5747) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5747) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5749) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5754) : error C2146: syntax error : missing \')\' before identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5754) : error C2061: syntax error : identifier \'DeviceQueue\'
E:\\USB\\iso\\wdm.h(5754) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5754) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(5756) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5918) : error C2146: syntax error : missing \')\' before identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5918) : error C2081: \'PKDPC\' : name in formal parameter list illegal
E:\\USB\\iso\\wdm.h(5918) : error C2061: syntax error : identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5918) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5919) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5927) : error C2146: syntax error : missing \')\' before identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5927) : error C2081: \'PKDPC\' : name in formal parameter list illegal
E:\\USB\\iso\\wdm.h(5927) : error C2061: syntax error : identifier \'Dpc\'
E:\\USB\\iso\\wdm.h(5927) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5928) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5980) : error C2146: syntax error : missing \')\' before identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5980) : error C2061: syntax error : identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5980) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5981) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5989) : error C2146: syntax error : missing \')\' before identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5989) : error C2061: syntax error : identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5989) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5990) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(5996) : error C2146: syntax error : missing \')\' before identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5996) : error C2061: syntax error : identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(5996) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(5997) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(6006) : error C2146: syntax error : missing \')\' before identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(6006) : error C2061: syntax error : identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(6006) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(6007) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(6013) : error C2146: syntax error : missing \')\' before identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(6013) : error C2061: syntax error : identifier \'SpinLock\'
E:\\USB\\iso\\wdm.h(6013) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(6013) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(6015) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(6114) : error C2146: syntax error : missing \')\' before identifier \'BugCheckParameter1\'
E:\\USB\\iso\\wdm.h(6114) : error C2081: \'ULONG_PTR\' : name in formal parameter list illegal
E:\\USB\\iso\\wdm.h(6114) : error C2061: syntax error : identifier \'BugCheckParameter1\'
E:\\USB\\iso\\wdm.h(6114) : error C2059: syntax error : \';\'
E:\\USB\\iso\\wdm.h(6114) : error C2059: syntax error : \',\'
E:\\USB\\iso\\wdm.h(6118) : error C2059: syntax error : \')\'
E:\\USB\\iso\\wdm.h(6339) : error C2146: syntax error : missing \')\' before identifier \'Lock\'
E:\\USB\\iso\\wdm.h(6339) : error C2081: \'PKSPIN_LOCK\' : name in formal parameter list illegal
E:\\USB\\iso\\wdm.h(6339) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

iso.sys - 102 error(s), 0 warning(s)
The following environment variables were not found
$(BASEDIR)
$(CPU)

\'PULONG_PTR\'之类在那里有定义?
即时包含basetsd.h(里面有PULONG_PTR等的定义)也无济于事,为什么?





[编辑 -  4/21/04 by    ]



[编辑 -  4/21/04 by  cqs103]
arthurcao
驱动小牛
驱动小牛
  • 注册日期2003-10-12
  • 最后登录2012-07-08
  • 粉丝0
  • 关注0
  • 积分92分
  • 威望20点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-04-21 14:58
呵呵,遇到过,102个错误,一个不多,一个不少,就是在VC下编译环境变量没设置对啊。
arthurcao喜欢开源。
cqs103
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-04-21 15:03
谢谢,我试试
cqs103
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-04-21 16:44
你好,我将vc 的tools \\option \\Directories 中添加 ddk的inc路径,解决了上述问题,但是,又出现isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_PnPAddDevice@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessPowerIrp@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessPnPIrp@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Read@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Write@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessIOCTL@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Close@8
isousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Create@8
isousb.obj : error LNK2001: unresolved external symbol __imp_@IofCallDriver@8
isousb.obj : error LNK2001: unresolved external symbol _memcpy
isousb.obj : error LNK2001: unresolved external symbol __imp__IoSetDeviceInterfaceState@8
isousb.obj : error LNK2001: unresolved external symbol __imp__IoRegisterDeviceInterface@16
isousb.obj : error LNK2001: unresolved external symbol __imp__RtlFreeUnicodeString@4
isousb.obj : error LNK2001: unresolved external symbol __imp__KeInitializeEvent@12
isousb.obj : error LNK2001: unresolved external symbol __imp__IoCreateDevice@28
isousb.obj : error LNK2001: unresolved external symbol __imp__KeWaitForSingleObject@20
isousb.obj : error LNK2001: unresolved external symbol __imp__IoBuildDeviceIoControlRequest@36
isousb.obj : error LNK2001: unresolved external symbol __imp__ExFreePool@4
isousb.obj : error LNK2001: unresolved external symbol __imp__ExAllocatePoolWithTag@12
isousb.obj : error LNK2001: unresolved external symbol _memset
isousb.obj : error LNK2001: unresolved external symbol __imp__USBD_ParseConfigurationDescriptorEx@28
isousb.obj : error LNK2001: unresolved external symbol __imp__USBD_CreateConfigurationRequest@8
isousb.obj : error LNK2001: unresolved external symbol __imp__KeSetEvent@12
isousb.obj : error LNK2001: unresolved external symbol __imp_@InterlockedDecrement@4
isousb.obj : error LNK2001: unresolved external symbol __imp_@InterlockedIncrement@4
Checked/cqsiso.sys : fatal error LNK1120: 25 unresolved externals
Error executing link.exe.
如何解决




[编辑 -  4/21/04 by  cqs103]
jinghuiren
驱动巨牛
驱动巨牛
  • 注册日期2002-06-01
  • 最后登录2008-10-27
  • 粉丝0
  • 关注0
  • 积分291分
  • 威望460点
  • 贡献值0点
  • 好评度428点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2004-04-21 21:38
我的是408个错误,一直没有得到解决
最后我只好用ds的ddk build setting 来做才行。
cqs103
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2004-04-22 13:44
谢谢资深专家回答,我想只要找到定义iso 函数的lib文件,在tools option/directaries 中include 即可,可我找不到这个库。
wdm.lib和usbd.lib中有一些,但现在仍有8个错误:cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_PnPAddDevice@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessPowerIrp@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessPnPIrp@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Read@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Write@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_ProcessIOCTL@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Close@8
cqsisousb.obj : error LNK2001: unresolved external symbol _IsoUsb_Create@8
苦闷
cqs103
驱动牛犊
驱动牛犊
  • 注册日期2004-04-08
  • 最后登录2004-08-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2004-04-22 13:50
我解决了!!!我找到了定义这些函数的才c文件了!!!!!
isopwr.c,isopnp.c等
游客

返回顶部