billx
驱动牛犊
驱动牛犊
  • 注册日期2002-03-13
  • 最后登录2011-06-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2160回复:4

请高手看看这是怎么回事?

楼主#
更多 发布于:2002-10-30 11:53
开发了一个NDIS-USB的网卡驱动程序,在win98+2000DDK或XPDDK和win2k+2000DDK或XPDDK下可以编译(用VC6.0)通过,而且在win2000和winXP可以正常工作。现在想开发一个用于win98的版本,但用win98+98DDK和win2k+98DDK编译时(VC6.0)出现大量错误,编译失败。

我不知道是什么原因.源程序都是一样的,出现这种情况似乎没有道理呀。请各位高手详细指点,如何解决这个问题。有分回报!

谢过了先!
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-10-31 10:06
2k和9x的ndis版本不一样,不一定就可以直接用
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
bbear
驱动小牛
驱动小牛
  • 注册日期2002-08-20
  • 最后登录2009-04-16
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-10-31 09:58
98ddk, 2000DDK
billx
驱动牛犊
驱动牛犊
  • 注册日期2002-03-13
  • 最后登录2011-06-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-10-30 13:35
把build.err log文件copy如下:
*************************************
BUILD: Computing Include file dependencies:
BUILD: c:\\progra~1\\micros~2\\vc98\\include\\exdisp.odl(31): c:\\progra~1\\micros~2\\vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: c:\\progra~1\\micros~2\\vc98\\include\\vidsvr.odl(16): c:\\progra~1\\micros~2\\vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: Examining c:\\98ddk\\project\\ndisusb directory for files to compile.
BUILD: Unable to save the dependency database: \\nt\\build.dat
Compiling c:\\98ddk\\project\\ndisusb directory ********************
\'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1\'
rc -l 409  -r -fo obj\\i386\\usb.tmp -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1  -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 .\\usb.rc
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\rwusb.c
rwusb.c
c:\\98DDK\\inc\\win98\\ntdef.h(176) : error C2220: warning treated as error - no object file generated
c:\\98DDK\\inc\\win98\\ntdef.h(176) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(401) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(546) : error C2011: \'_LARGE_INTEGER\' : \'union\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(565) : error C2011: \'_ULARGE_INTEGER\' : \'union\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(873) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(881) : error C2011: \'_STRING\' : \'struct\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(925) : error C2371: \'PVOID\' : redefinition; different basic types
        c:\\98DDK\\inc\\win98\\basedef.h(66) : see declaration of \'PVOID\'
c:\\98DDK\\inc\\win98\\ntdef.h(946) : error C2011: \'_LIST_ENTRY\' : \'struct\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(1133) : warning C4005: \'CONTAINING_RECORD\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(3500) : see previous definition of \'CONTAINING_RECORD\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2143: syntax error : missing \')\' before \'*\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2143: syntax error : missing \'{\' before \'*\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2059: syntax error : \')\'
c:\\98DDK\\inc\\win98\\ntdef.h(1159) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(1496) : warning C4005: \'UNREFERENCED_PARAMETER\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(3673) : see previous definition of \'UNREFERENCED_PARAMETER\'
c:\\98DDK\\inc\\win98\\windef.h(95) : warning C4005: \'PASCAL\' : macro redefinition
        c:\\98DDK\\inc\\win98\\basedef.h(34) : see previous definition of \'PASCAL\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(151) : warning C4142: benign redefinition of type
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(303) : error C2011: \'_FLOAT128\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(353) : error C2011: \'_LARGE_INTEGER\' : \'union\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(372) : error C2011: \'_ULARGE_INTEGER\' : \'union\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(394) : error C2011: \'_LUID\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(498) : warning C4005: \'UInt32x32To64\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(704) : see previous definition of \'UInt32x32To64\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(529) : error C2084: function \'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(545) : error C2084: function \'__int64 __stdcall Int64ShraMod32(__int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(561) : error C2084: function \'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(643) : error C2011: \'_LIST_ENTRY\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(653) : error C2011: \'_SINGLE_LIST_ENTRY\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(948) : warning C4005: \'MAKELANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1425) : see previous definition of \'MAKELANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(949) : warning C4005: \'PRIMARYLANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1426) : see previous definition of \'PRIMARYLANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(950) : warning C4005: \'SUBLANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1427) : see previous definition of \'SUBLANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(976) : warning C4005: \'MAKELCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1453) : see previous definition of \'MAKELCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(979) : warning C4005: \'MAKESORTLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1456) : see previous definition of \'MAKESORTLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(980) : warning C4005: \'LANGIDFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1457) : see previous definition of \'LANGIDFROMLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(981) : warning C4005: \'SORTIDFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1458) : see previous definition of \'SORTIDFROMLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(982) : warning C4005: \'SORTVERSIONFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1459) : see previous definition of \'SORTVERSIONFROMLCID\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2059: syntax error : \',\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2143: syntax error : missing \')\' before \'constant\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2143: syntax error : missing \'{\' before \'constant\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2059: syntax error : \'<Unknown>\'
c:\\98DDK\\inc\\win98\\usbioctl.h(34) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(80) : warning C4013: \'DbgPrint\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(85) : warning C4013: \'PsCreateSystemThread\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(96) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(97) : error C2065: \'STATUS_INSUFFICIENT_RESOURCES\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(119) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(157) : error C2065: \'PIO_STACK_LOCATION\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(157) : error C2146: syntax error : missing \';\' before identifier \'nextStack\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(157) : error C2065: \'nextStack\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(158) : error C2275: \'NTSTATUS\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\ndis.h(642) : see declaration of \'NTSTATUS\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(158) : error C2146: syntax error : missing \';\' before identifier \'timeStat\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(158) : error C2065: \'timeStat\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(159) : error C2275: \'PMDL\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\usbdi.h(36) : see declaration of \'PMDL\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(159) : error C2146: syntax error : missing \';\' before identifier \'mdl\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(159) : error C2065: \'mdl\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(160) : error C2275: \'PRCV_BUFFER\' : illegal use of this type as an expression
        C:\\98DDK\\project\\ndisusb\\common.h(98) : see declaration of \'PRCV_BUFFER\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(160) : error C2146: syntax error : missing \';\' before identifier \'pRecBuf\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(160) : error C2065: \'pRecBuf\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(161) : error C2275: \'UINT\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\basedef.h(40) : see declaration of \'UINT\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(161) : error C2146: syntax error : missing \';\' before identifier \'Index\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(161) : error C2065: \'Index\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(164) : warning C4013: \'KeGetCurrentIrql\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(164) : error C2065: \'PASSIVE_LEVEL\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(172) : warning C4047: \'=\' : \'int \' differs in levels of indirection from \'struct RCV_BUFFER *\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(191) : error C2223: left of \'->Urb\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(205) : warning C4013: \'KeClearEvent\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(205) : error C2223: left of \'->Event\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(221) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(221) : warning C4013: \'IoAllocateIrp\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(221) : error C2223: left of \'->StackSize\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(224) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(231) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(231) : error C2065: \'STATUS_NOT_SUPPORTED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(232) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(256) : error C2223: left of \'->dataBuf\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(265) : warning C4013: \'IoGetNextIrpStackLocation\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(265) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(274) : error C2223: left of \'->MajorFunction\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(274) : error C2065: \'IRP_MJ_INTERNAL_DEVICE_CONTROL\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(275) : error C2223: left of \'->Parameters\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(276) : error C2223: left of \'->Parameters\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(277) : warning C4013: \'CTL_CODE\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(277) : error C2065: \'FILE_DEVICE_UNKNOWN\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(277) : error C2065: \'METHOD_NEITHER\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(277) : error C2065: \'FILE_ANY_ACCESS\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(280) : warning C4013: \'IoSetCompletionRoutine\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(281) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(294) : warning C4013: \'IoCallDriver\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(294) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(296) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(304) : error C2223: left of \'->Event\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(306) : warning C4022: \'MyKeWaitForSingleObject\' : pointer mismatch for actual parameter 3
C:\\98DDK\\project\\ndisusb\\rwusb.c(306) : error C2198: \'MyKeWaitForSingleObject\' : too few actual parameters
C:\\98DDK\\project\\ndisusb\\rwusb.c(309) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(315) : warning C4013: \'InterlockedExchange\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(372) : error C2065: \'ULONG_PTR\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(372) : error C2146: syntax error : missing \';\' before identifier \'BytesRead\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(372) : error C2065: \'BytesRead\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(373) : error C2275: \'PRCV_BUFFER\' : illegal use of this type as an expression
        C:\\98DDK\\project\\ndisusb\\common.h(98) : see declaration of \'PRCV_BUFFER\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(373) : error C2146: syntax error : missing \';\' before identifier \'pRecBuf\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(374) : error C2275: \'LARGE_INTEGER\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\basedef.h(109) : see declaration of \'LARGE_INTEGER\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(374) : error C2146: syntax error : missing \';\' before identifier \'tat\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(374) : error C2065: \'tat\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(382) : warning C4047: \'=\' : \'int \' differs in levels of indirection from \'struct RCV_BUFFER *\'
C:\\98DDK\\project\\ndisusb\\rwusb.c(384) : error C2223: left of \'->device\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(386) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(418) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(425) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(426) : error C2223: left of \'->Urb\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(428) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(440) : error C2223: left of \'->dataLen\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(440) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(458) : warning C4047: \'=\' : \'struct RCV_BUFFER *\' differs in levels of indirection from \'int \'
C:\\98DDK\\project\\ndisusb\\rwusb.c(479) : error C2065: \'STATUS_DEVICE_DATA_ERROR\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(479) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(490) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(494) : error C2065: \'STATUS_INVALID_PARAMETER\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(494) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(499) : error C2065: \'STATUS_CANCELLED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(499) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(503) : error C2065: \'STATUS_DEVICE_NOT_CONNECTED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(503) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(509) : error C2065: \'STATUS_DEVICE_POWER_FAILURE\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(509) : error C2051: case expression not constant
C:\\98DDK\\project\\ndisusb\\rwusb.c(517) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(526) : error C2223: left of \'->state\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(533) : warning C4013: \'IoFreeIrp\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(535) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(543) : warning C4018: \'!=\' : signed/unsigned mismatch
C:\\98DDK\\project\\ndisusb\\rwusb.c(545) : error C2223: left of \'->Urb\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(549) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(551) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(562) : warning C4013: \'KeSetEvent\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(562) : error C2223: left of \'->Event\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\rwusb.c(569) : error C2065: \'STATUS_MORE_PROCESSING_REQUIRED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\rwusb.c(609) : warning C4013: \'InterlockedExchangePointer\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\rwusb.c(634) : error C2708: \'KeSetEvent\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(667) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\rwusb.c(667) : fatal error C1003: error count exceeds 100; stopping compilation
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\usb.c
usb.c
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2065: \'ANYSIZE_ARRAY\' : undeclared identifier
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2057: expected constant expression
c:\\98DDK\\inc\\win98\\ntddndis.h(682) : error C2011: \'_NDIS_MEDIUM\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(702) : error C2011: \'_NDIS_HARDWARE_STATUS\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(740) : error C2011: \'_NDIS_FDDI_ATTACHMENT_TYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(761) : error C2011: \'_NDIS_FDDI_RING_MGT_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(777) : error C2011: \'_NDIS_FDDI_LCONNECTION_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(795) : error C2011: \'_NDIS_WAN_MEDIUM_SUBTYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(811) : error C2011: \'_NDIS_WAN_HEADER_FORMAT\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(821) : error C2011: \'_NDIS_WAN_QUALITY\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(832) : error C2011: \'_NDIS_802_5_RING_STATE\' : \'enum\' type redefinition
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\debug.h(170) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\common.h(659) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(41) : warning C4005: \'NDIS_MAJOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(76) : see previous definition of \'NDIS_MAJOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(42) : warning C4005: \'NDIS_MINOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(77) : see previous definition of \'NDIS_MINOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\usb.c(56) : error C2065: \'NDIS_MINIPORT_CHARACTERISTICS\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(56) : error C2146: syntax error : missing \';\' before identifier \'characteristics\'
C:\\98DDK\\project\\ndisusb\\usb.c(56) : error C2065: \'characteristics\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(57) : error C2275: \'NDIS_HANDLE\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\ndis.h(582) : see declaration of \'NDIS_HANDLE\'
C:\\98DDK\\project\\ndisusb\\usb.c(57) : error C2146: syntax error : missing \';\' before identifier \'hWrapper\'
C:\\98DDK\\project\\ndisusb\\usb.c(57) : error C2065: \'hWrapper\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(60) : warning C4013: \'NdisMInitializeWrapper\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(73) : error C2224: left of \'.MajorNdisVersion\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(74) : error C2224: left of \'.MinorNdisVersion\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(75) : error C2224: left of \'.Reserved\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(78) : error C2224: left of \'.HaltHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(79) : error C2224: left of \'.InitializeHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(80) : error C2224: left of \'.QueryInformationHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(81) : error C2224: left of \'.SetInformationHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(82) : error C2224: left of \'.ResetHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(87) : error C2224: left of \'.SendHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(88) : error C2224: left of \'.SendPacketsHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(95) : error C2224: left of \'.ReturnPacketHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(96) : error C2224: left of \'.TransferDataHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(102) : error C2224: left of \'.ReconfigureHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(109) : error C2224: left of \'.HandleInterruptHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(110) : error C2224: left of \'.ISRHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(111) : error C2224: left of \'.DisableInterruptHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(112) : error C2224: left of \'.EnableInterruptHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(120) : error C2224: left of \'.AllocateCompleteHandler\' must have struct/union type
C:\\98DDK\\project\\ndisusb\\usb.c(123) : warning C4013: \'NdisMRegisterMiniport\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(177) : warning C4013: \'NdisMGetDeviceProperty\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(232) : warning C4013: \'NdisMSetAttributesEx\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(235) : error C2065: \'NDIS_ATTRIBUTE_DESERIALIZE\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(389) : warning C4013: \'NdisMSleep\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(402) : warning C4013: \'KeSetEvent\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(571) : warning C4013: \'NdisMResetComplete\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(603) : warning C4013: \'NdisMIndicateStatus\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(605) : error C2065: \'NDIS_STATUS_MEDIA_BUSY\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(610) : warning C4013: \'NdisMIndicateStatusComplete\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(612) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\usb.c(651) : error C2061: syntax error : identifier \'MiniportSend\'
C:\\98DDK\\project\\ndisusb\\usb.c(651) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\usb.c(652) : error C2059: syntax error : \'type\'
C:\\98DDK\\project\\ndisusb\\usb.c(699) : warning C4013: \'DbgPrint\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(738) : warning C4013: \'InterlockedExchange\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(840) : warning C4013: \'KeInitializeEvent\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\usb.c(841) : error C2065: \'NotificationEvent\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\usb.c(1006) : warning C4013: \'NdisAllocateMemoryWithTag\' undefined; assuming extern returning int
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\request.c
request.c
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2065: \'ANYSIZE_ARRAY\' : undeclared identifier
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2057: expected constant expression
c:\\98DDK\\inc\\win98\\ntddndis.h(682) : error C2011: \'_NDIS_MEDIUM\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(702) : error C2011: \'_NDIS_HARDWARE_STATUS\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(740) : error C2011: \'_NDIS_FDDI_ATTACHMENT_TYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(761) : error C2011: \'_NDIS_FDDI_RING_MGT_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(777) : error C2011: \'_NDIS_FDDI_LCONNECTION_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(795) : error C2011: \'_NDIS_WAN_MEDIUM_SUBTYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(811) : error C2011: \'_NDIS_WAN_HEADER_FORMAT\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(821) : error C2011: \'_NDIS_WAN_QUALITY\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(832) : error C2011: \'_NDIS_802_5_RING_STATE\' : \'enum\' type redefinition
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\debug.h(170) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\common.h(659) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(41) : warning C4005: \'NDIS_MAJOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(76) : see previous definition of \'NDIS_MAJOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(42) : warning C4005: \'NDIS_MINOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(77) : see previous definition of \'NDIS_MINOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\request.c(97) : error C2065: \'OID_PNP_CAPABILITIES\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\request.c(97) : error C2099: initializer is not a constant
C:\\98DDK\\project\\ndisusb\\request.c(177) : warning C4013: \'DbgPrint\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\request.c(187) : warning C4013: \'NdisGetCurrentSystemTime\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\request.c(194) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(215) : error C2065: \'NDIS_PNP_CAPABILITIES\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\request.c(466) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(591) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(603) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(699) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(730) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(746) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(756) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\request.c(766) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\receive.c
receive.c
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2065: \'ANYSIZE_ARRAY\' : undeclared identifier
c:\\98DDK\\inc\\win98\\ntddndis.h(98) : error C2057: expected constant expression
c:\\98DDK\\inc\\win98\\ntddndis.h(682) : error C2011: \'_NDIS_MEDIUM\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(702) : error C2011: \'_NDIS_HARDWARE_STATUS\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(740) : error C2011: \'_NDIS_FDDI_ATTACHMENT_TYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(761) : error C2011: \'_NDIS_FDDI_RING_MGT_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(777) : error C2011: \'_NDIS_FDDI_LCONNECTION_STATE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(795) : error C2011: \'_NDIS_WAN_MEDIUM_SUBTYPE\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(811) : error C2011: \'_NDIS_WAN_HEADER_FORMAT\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(821) : error C2011: \'_NDIS_WAN_QUALITY\' : \'enum\' type redefinition
c:\\98DDK\\inc\\win98\\ntddndis.h(832) : error C2011: \'_NDIS_802_5_RING_STATE\' : \'enum\' type redefinition
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\debug.h(167) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\debug.h(170) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2146: syntax error : missing \')\' before identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2061: syntax error : identifier \'RegPath\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \';\'
C:\\98DDK\\project\\ndisusb\\common.h(657) : error C2059: syntax error : \',\'
C:\\98DDK\\project\\ndisusb\\common.h(659) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(41) : warning C4005: \'NDIS_MAJOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(76) : see previous definition of \'NDIS_MAJOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\USBNDIS.h(42) : warning C4005: \'NDIS_MINOR_VERSION\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(77) : see previous definition of \'NDIS_MINOR_VERSION\'
C:\\98DDK\\project\\ndisusb\\receive.c(94) : warning C4013: \'InterlockedExchange\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\receive.c(104) : warning C4013: \'DbgPrint\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\receive.c(206) : warning C4013: \'NDIS_SET_PACKET_HEADER_SIZE\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\receive.c(214) : warning C4013: \'NDIS_SET_PACKET_STATUS\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\receive.c(220) : warning C4013: \'NdisMIndicateReceivePacket\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\receive.c(268) : warning C4013: \'NdisInterlockedIncrement\' undefined; assuming extern returning int
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\send.c
send.c
c:\\98DDK\\inc\\win98\\ntdef.h(176) : error C2220: warning treated as error - no object file generated
c:\\98DDK\\inc\\win98\\ntdef.h(176) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(401) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(546) : error C2011: \'_LARGE_INTEGER\' : \'union\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(565) : error C2011: \'_ULARGE_INTEGER\' : \'union\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(873) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(881) : error C2011: \'_STRING\' : \'struct\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(925) : error C2371: \'PVOID\' : redefinition; different basic types
        c:\\98DDK\\inc\\win98\\basedef.h(66) : see declaration of \'PVOID\'
c:\\98DDK\\inc\\win98\\ntdef.h(946) : error C2011: \'_LIST_ENTRY\' : \'struct\' type redefinition
c:\\98DDK\\inc\\win98\\ntdef.h(1133) : warning C4005: \'CONTAINING_RECORD\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(3500) : see previous definition of \'CONTAINING_RECORD\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2143: syntax error : missing \')\' before \'*\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2143: syntax error : missing \'{\' before \'*\'
c:\\98DDK\\inc\\win98\\ntdef.h(1146) : error C2059: syntax error : \')\'
c:\\98DDK\\inc\\win98\\ntdef.h(1159) : warning C4142: benign redefinition of type
c:\\98DDK\\inc\\win98\\ntdef.h(1496) : warning C4005: \'UNREFERENCED_PARAMETER\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ndis.h(3673) : see previous definition of \'UNREFERENCED_PARAMETER\'
c:\\98DDK\\inc\\win98\\windef.h(95) : warning C4005: \'PASCAL\' : macro redefinition
        c:\\98DDK\\inc\\win98\\basedef.h(34) : see previous definition of \'PASCAL\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(151) : warning C4142: benign redefinition of type
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(303) : error C2011: \'_FLOAT128\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(353) : error C2011: \'_LARGE_INTEGER\' : \'union\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(372) : error C2011: \'_ULARGE_INTEGER\' : \'union\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(394) : error C2011: \'_LUID\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(498) : warning C4005: \'UInt32x32To64\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(704) : see previous definition of \'UInt32x32To64\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(529) : error C2084: function \'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(545) : error C2084: function \'__int64 __stdcall Int64ShraMod32(__int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(561) : error C2084: function \'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64 ,unsigned long )\' already has a body
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(643) : error C2011: \'_LIST_ENTRY\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(653) : error C2011: \'_SINGLE_LIST_ENTRY\' : \'struct\' type redefinition
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(948) : warning C4005: \'MAKELANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1425) : see previous definition of \'MAKELANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(949) : warning C4005: \'PRIMARYLANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1426) : see previous definition of \'PRIMARYLANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(950) : warning C4005: \'SUBLANGID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1427) : see previous definition of \'SUBLANGID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(976) : warning C4005: \'MAKELCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1453) : see previous definition of \'MAKELCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(979) : warning C4005: \'MAKESORTLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1456) : see previous definition of \'MAKESORTLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(980) : warning C4005: \'LANGIDFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1457) : see previous definition of \'LANGIDFROMLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(981) : warning C4005: \'SORTIDFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1458) : see previous definition of \'SORTIDFROMLCID\'
C:\\PROGRA~1\\MICROS~2\\VC98\\INCLUDE\\winnt.h(982) : warning C4005: \'SORTVERSIONFROMLCID\' : macro redefinition
        c:\\98DDK\\inc\\win98\\ntdef.h(1459) : see previous definition of \'SORTVERSIONFROMLCID\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2059: syntax error : \',\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2143: syntax error : missing \')\' before \'constant\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2143: syntax error : missing \'{\' before \'constant\'
c:\\98DDK\\inc\\win98\\usbioctl.h(33) : error C2059: syntax error : \'<Unknown>\'
c:\\98DDK\\inc\\win98\\usbioctl.h(34) : error C2059: syntax error : \')\'
C:\\98DDK\\project\\ndisusb\\send.c(96) : error C2065: \'PIO_STACK_LOCATION\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(96) : error C2146: syntax error : missing \';\' before identifier \'nextStack\'
C:\\98DDK\\project\\ndisusb\\send.c(96) : error C2065: \'nextStack\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(97) : error C2275: \'PMDL\' : illegal use of this type as an expression
        c:\\98DDK\\inc\\win98\\usbdi.h(36) : see declaration of \'PMDL\'
C:\\98DDK\\project\\ndisusb\\send.c(97) : error C2146: syntax error : missing \';\' before identifier \'mdl\'
C:\\98DDK\\project\\ndisusb\\send.c(97) : error C2065: \'mdl\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(98) : error C2275: \'PUSB_CONTEXT\' : illegal use of this type as an expression
        C:\\98DDK\\project\\ndisusb\\usb.h(50) : see declaration of \'PUSB_CONTEXT\'
C:\\98DDK\\project\\ndisusb\\send.c(98) : error C2146: syntax error : missing \';\' before identifier \'pCur\'
C:\\98DDK\\project\\ndisusb\\send.c(98) : error C2065: \'pCur\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(98) : error C2065: \'thisContext\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(100) : warning C4013: \'KeGetCurrentIrql\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(100) : error C2065: \'PASSIVE_LEVEL\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(102) : warning C4047: \'=\' : \'int \' differs in levels of indirection from \'struct _USB_CONTEXT *\'
C:\\98DDK\\project\\ndisusb\\send.c(110) : error C2223: left of \'->Packet\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(111) : error C2223: left of \'->Type\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(113) : error C2223: left of \'->Urb\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(129) : error C2223: left of \'->BufLen\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(134) : error C2223: left of \'->Buffer\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(134) : error C2223: left of \'->BufLen\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(134) : error C2168: \'memset\' : too few actual parameters for intrinsic function
C:\\98DDK\\project\\ndisusb\\send.c(145) : error C2223: left of \'->Buffer\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(147) : warning C4047: \'function\' : \'unsigned char *\' differs in levels of indirection from \'const int \'
C:\\98DDK\\project\\ndisusb\\send.c(147) : warning C4024: \'NdisToUsbPacket\' : different types for formal and actual parameter 3
C:\\98DDK\\project\\ndisusb\\send.c(147) : error C2198: \'NdisToUsbPacket\' : too few actual parameters
C:\\98DDK\\project\\ndisusb\\send.c(164) : error C2223: left of \'->Buffer\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(176) : error C2223: left of \'->BufLen\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(187) : warning C4013: \'IoAllocateIrp\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(187) : error C2223: left of \'->StackSize\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(187) : warning C4047: \'=\' : \'void *\' differs in levels of indirection from \'int \'
C:\\98DDK\\project\\ndisusb\\send.c(196) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(196) : error C2065: \'STATUS_NOT_SUPPORTED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(197) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(199) : error C2223: left of \'->Irp\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(218) : error C2223: left of \'->Buffer\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(226) : warning C4013: \'IoGetNextIrpStackLocation\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(235) : error C2223: left of \'->MajorFunction\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(235) : error C2065: \'IRP_MJ_INTERNAL_DEVICE_CONTROL\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(236) : error C2223: left of \'->Parameters\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(237) : error C2223: left of \'->Parameters\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(238) : warning C4013: \'CTL_CODE\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(238) : error C2065: \'FILE_DEVICE_UNKNOWN\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(238) : error C2065: \'METHOD_NEITHER\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(238) : error C2065: \'FILE_ANY_ACCESS\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(241) : warning C4013: \'IoSetCompletionRoutine\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(255) : warning C4013: \'IoCallDriver\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(354) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(365) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(368) : error C2223: left of \'->IoStatus\' must point to struct/union
C:\\98DDK\\project\\ndisusb\\send.c(372) : warning C4013: \'InterlockedIncrement\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(386) : warning C4013: \'IoFreeIrp\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(395) : warning C4013: \'InterlockedExchangePointer\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(396) : warning C4013: \'InterlockedExchange\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(410) : warning C4013: \'KeSetEvent\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(420) : warning C4013: \'NdisMSetInformationComplete\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(433) : warning C4013: \'NdisMSendComplete\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(440) : error C2065: \'STATUS_CANCELLED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(440) : warning C4018: \'!=\' : signed/unsigned mismatch
C:\\98DDK\\project\\ndisusb\\send.c(448) : error C2065: \'STATUS_MORE_PROCESSING_REQUIRED\' : undeclared identifier
C:\\98DDK\\project\\ndisusb\\send.c(474) : warning C4013: \'DbgPrint\' undefined; assuming extern returning int
C:\\98DDK\\project\\ndisusb\\send.c(505) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\send.c(530) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
C:\\98DDK\\project\\ndisusb\\send.c(598) : error C2708: \'DbgPrint\' : actual parameters length in bytes differs from previous call or reference
cl -nologo -Ii386\\ -I. -Ic:\\98DDK\\inc -Ic:\\98DDK\\inc\\ddk -I..\\..\\..\\inc -I..\\..\\inc -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -Ic:\\98DDK\\inc\\win98 -D_X86_=1 -Di386=1  -DSTD_CALL -DCONDITION_HANDLING=1 -DNT_UP=1  -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400    -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0    -DNDEBUG -D_DLL=1 -D_IDWBUILD -DRDRDBG -DSRVDBG -DNDIS_MINIPORT_DRIVER=1 -DNDIS50_MINIPORT=1 -DDRIVER -DBINARY_COMPATIBLE=1 -DNDIS_WDM=1  -DUSE_KLOCKS=1    /c /Zel /Zp8 /Gy -cbstring /W3 /WX /Gz  /QIfdiv- /QIf  /Gi- /Gm- /GX- /GR- /GF  -Z7 /Od /Oi /Oy-   -FIc:\\98DDK\\inc\\win98\\warning.h  .\\debug.c
debug.c

Stop.
Compile errors: not linking c:\\98ddk\\project\\ndisusb directory ********************
*******************************************************

不好意思,错误太多了。烦请各位高手仔细分析一下,给在下一些指点!

谢谢!
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-10-30 12:06
不把错误信息贴出来,谁知道是什么原因?!
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
游客

返回顶部