今天第一次編譯 windows driver,真是出師不利,編譯別人寫好的 driver 也出現下列錯誤。

BUILD: Compiling and Linking d:\sample code\windows driver development internals\chapter01\nt_driver\1 directory Configuring OACR for 'root:x86chk' - <OACR on> _NT_TARGET_VERSION SET TO WINXP 1>errors in directory d:\sample_code\windows_driver_development_internals\chapter01\nt driver\1 1>c:\winddk\7600.16385.0\bin\makefile.new(7117) : error U1087: cannot have : and :: dependents for same target 1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2

還好有 google 大神相助,找到原因竟然只是因為程式碼路徑包含空白,造成 build 誤判。只要把 d:\sample code\windows driver development internals\chapter01\nt_driver\1 所有的空白去掉即可。

BUILD: Examining d:\sample_code\windows_driver_development_internals\chapter01\nt_driver\1 directory for files to compile. d:\sample_code\windows_driver_development_internals\chapter01\nt_driver\1 Invalidating OACR warning log for 'root:x86chk' BUILD: Saving c:\winddk\7600.16385.0\build.dat... BUILD: Compiling and Linking d:\sample_code\windows_driver_development_internals\chapter01\nt_driver\1 directory Configuring OACR for 'root:x86chk' - <OACR on> _NT_TARGET_VERSION SET TO WINXP
創作者介紹

邱小新の工作筆記

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()