我使用的是vs2005 DriverStudio3.2 XPDDK编译DriverStudio库文件时出现这样的问题如下:
C:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~4\source>call C:\WINDDK\2600\bin\setenv.bat C:\WINDDK\2600 chk
C:\PROGRA~1\COMPUW~1\DRIVER~1\DRIVER~4\source>build.exe -ceZ
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Examining c:\progra~1\compuw~1\driver~1\driver~4\source directory for files to compile.
c:\progra~1\compuw~1\driver~1\driver~4\source
BUILD: Compiling c:\progra~1\compuw~1\driver~1\driver~4\source directory
Compiling - k1394.cpp for i386
Compiling - k1394async.cpp for i386
Compiling - k1394isoc.cpp for i386
Compiling - kevent.cpp for i386
Compiling - klower.cpp for i386
Compiling - kmutex.cpp for i386
Compiling - kpnplow.cpp for i386
Compiling - ksemaphr.cpp for i386
Compiling - kspin.cpp for i386
Compiling - ksysthrd.cpp for i386
Compiling - ktimer.cpp for i386
Compiling - kusb.cpp for i386
Compiling - kustring.cpp for i386
Compiling - util.cpp for i386
Building Library - c:\progra~1\compuware\driverstudio\driverworks\lib\i386\kndiswdm.lib for i386
lib() : error LNK1181: cannot open input file 'objchk\i386\kusb.obj'
BUILD: Done
28 files compiled
1 library built - 1 Error
Errors in the build process. Cannot copy build result to DriverWorks\lib.
就是
lib() : error LNK1181: cannot open input file 'objchk\i386\kusb.obj'
我选的是WDM checked win32请问这是为什么呀,请大侠指点
看看kusb.obj是不是生成在objchk\i386路径下。
生成在路径obj\i386\wdmchecked下就是选的编译的条件下呀,不是所有的*.obj都是在这个路径
下吗,那怎么改变路径呀,其它文件都是一样的呀?请指点。。。
好像有专门的命令来copy这些*.obj文件到objchk\i386路径下,但是为什么就kusb.obj这个文件
没有被copy到objchk\i386路径下下呢,没有人知道这是为什么吗?
用VC6.0编译驱动程序的方法:http://blog.eeworld.net/linuxpgy/archive/2008/05/11/2434572.aspx