阅读:1578回复:2
How to solve the problem : Windows XP passthru source code can\'t be compiled in Windows 2000
BUILD: Computing Include file dependencies:
BUILD: Examining d:\\vc\\2001-10-30_passthru\\passthru directory tree for files to compile. BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\winbase.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\wingdi.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\winuser.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\winnls.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\winreg.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\mmsystem.h: cannot find include file <macwin32.h> BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\notifyob\\pch.h: c:\\ntddk\\inc\\olectl.h: cannot find include file <macocidl.h> Compiling d:\\vc\\2001-10-30_passthru\\passthru\\driver directory ******************** \'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1\' cl -nologo /Tc -Ii386\\ -I. -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc\\ddk -Ic:\\NTDDK\\inc\\ddk\\wdm -Ic:\\NTDDK\\private\\inc -Ic:\\NTDDK\\inc -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=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DNDIS51_MINIPORT=1 -DNDIS51=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FIc:\\NTDDK\\inc\\warning.h /Yuprecomp.h /Fpobjchk\\i386\\precomp.pch /Ylpassthru /Ycprecomp.h /Fpobjchk\\i386\\precomp.pch /Fo\"d:\\vc\\2001-10-30_passthru\\passthru\\driver\\objchk\\i386\\precomp.obj\" #include \"precomp.h\" pch_hdr.src .\\passthru.h(318) : error C2146: syntax error : missing \')\' before identifier \'DevicePnPEvent\' .\\passthru.h(318) : error C2081: \'NDIS_DEVICE_PNP_EVENT\' : name in formal parameter list illegal .\\passthru.h(318) : error C2061: syntax error : identifier \'DevicePnPEvent\' .\\passthru.h(318) : error C2059: syntax error : \';\' .\\passthru.h(318) : error C2059: syntax error : \',\' .\\passthru.h(321) : error C2059: syntax error : \')\' cl -nologo /Tc -Ii386\\ -I. -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc\\ddk -Ic:\\NTDDK\\inc\\ddk\\wdm -Ic:\\NTDDK\\private\\inc -Ic:\\NTDDK\\inc -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=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DNDIS51_MINIPORT=1 -DNDIS51=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FIc:\\NTDDK\\inc\\warning.h /Yuprecomp.h /Fpobjchk\\i386\\precomp.pch /Ylpassthru /Ycprecomp.h /Fpobjchk\\i386\\precomp.pch /Fo\"d:\\vc\\2001-10-30_passthru\\passthru\\driver\\objchk\\i386\\precomp.obj\" #include \"precomp.h\" pch_hdr.src .\\passthru.h(318) : error C2146: syntax error : missing \')\' before identifier \'DevicePnPEvent\' .\\passthru.h(318) : error C2081: \'NDIS_DEVICE_PNP_EVENT\' : name in formal parameter list illegal .\\passthru.h(318) : error C2061: syntax error : identifier \'DevicePnPEvent\' .\\passthru.h(318) : error C2059: syntax error : \';\' .\\passthru.h(318) : error C2059: syntax error : \',\' .\\passthru.h(321) : error C2059: syntax error : \')\' cl -nologo -Ii386\\ -I. -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc\\ddk -Ic:\\NTDDK\\inc\\ddk\\wdm -Ic:\\NTDDK\\private\\inc -Ic:\\NTDDK\\inc -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=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DNDIS51_MINIPORT=1 -DNDIS51=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FIc:\\NTDDK\\inc\\warning.h /Yuprecomp.h /Fpobjchk\\i386\\precomp.pch .\\miniport.c miniport.c d:\\vc\\2001-10-30_passthru\\passthru\\driver\\miniport.c(23) : fatal error C1083: Cannot open precompiled header file: \'objchk\\i386\\precomp.pch\': No such file or directory cl -nologo -Ii386\\ -I. -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc\\ddk -Ic:\\NTDDK\\inc\\ddk\\wdm -Ic:\\NTDDK\\private\\inc -Ic:\\NTDDK\\inc -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=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DNDIS51_MINIPORT=1 -DNDIS51=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FIc:\\NTDDK\\inc\\warning.h /Yuprecomp.h /Fpobjchk\\i386\\precomp.pch .\\passthru.c passthru.c d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.c(24) : fatal error C1083: Cannot open precompiled header file: \'objchk\\i386\\precomp.pch\': No such file or directory cl -nologo -Ii386\\ -I. -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc -Ic:\\NTDDK\\inc\\ddk -Ic:\\NTDDK\\inc\\ddk\\wdm -Ic:\\NTDDK\\private\\inc -Ic:\\NTDDK\\inc -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=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DNDIS51_MINIPORT=1 -DNDIS51=1 /c /Zel /Zp8 /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7 /Oxs /Oy- -FIc:\\NTDDK\\inc\\warning.h /Yuprecomp.h /Fpobjchk\\i386\\precomp.pch .\\protocol.c protocol.c d:\\vc\\2001-10-30_passthru\\passthru\\driver\\protocol.c(24) : fatal error C1083: Cannot open precompiled header file: \'objchk\\i386\\precomp.pch\': No such file or directory Stop. Compile errors: not linking d:\\vc\\2001-10-30_passthru\\passthru\\driver directory ******************** Linking d:\\vc\\2001-10-30_passthru\\passthru\\notifyob directory ******************** \'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= MAKEDLL=1 386=1\' Stop. |
|
沙发#
发布于:2001-12-13 08:43
now the problem is : two head files can\'t be found. does anyone have the ideas about it?
========================================================== The previous problem is solved by changing the source file as below: ... #C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1 #C_DEFINES=$(C_DEFINES) -DNDIS51=1 # Comment out the two lines above and uncomment the following # two lines to build for Win2000 or Win98/SE or WinMe C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1 C_DEFINES=$(C_DEFINES) -DNDIS40=1 ... but I still get error(two head files can\'t be found) : BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\driver\\passthru.rc: c:\\ntddk\\inc\\mmsys tem.h: cannot find include file <macwin32.h> d:\\vc\\2001-10-30_passthru\\passthru\\driver - 4 source files (3,228 lines) BUILD: d:\\vc\\2001-10-30_passthru\\passthru\\notifyob\\pch.h: c:\\ntddk\\inc\\olectl.h: cannot find include file <macocidl.h> |
|
板凳#
发布于:2001-12-13 09:21
add \"#undef _MAC\" to pch.h file, everything is ok
|
|