阅读:2564回复:2
诚心请教 vs2005 VdwLibs.dsw 编译出错
问题可能很简单,请大家见谅。
1.vs2005中的生成与ds3.2里的生成有什么区别? 2.我在生成VdwLibs.dsw 的时候用两个不同的生成报的错完全不一样,我只选了32位的 在ds3.2自带的生成中错误大概是:lib() : error LNK1181: cannot open input file 'objchk\i386\khidaux.obj'。详细如下:已复制 1 个文件。 D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\kstl.cpp D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\kstllmcb.cpp D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\kstlnphs.cpp D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\kstlphs.cpp D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\stcinit.cpp D:\COMPUW~1\DRIVER~1\DRIVER~4\..\Common\source\suballoc.cpp 已复制 6 个文件。 D:\COMPUW~1\DRIVER~1\DRIVER~4\source>call d:\WINDDK\2600\bin\setenv.bat d:\WINDDK\2600 chk D:\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 d:\compuw~1\driver~1\driver~4\source directory for files to compile. d:\compuw~1\driver~1\driver~4\source BUILD: Compiling d:\compuw~1\driver~1\driver~4\source directory Compiling - cpprt.cpp for i386 Compiling - stcinit.cpp for i386 Compiling - dwcontrl.cpp for i386 Compiling - kaddress.cpp for i386 Compiling - kchecker.cpp for i386 Compiling - kdevice.cpp for i386 Compiling - kerrlog.cpp for i386 Compiling - kfifo.cpp for i386 Compiling - kfile.cpp for i386 Compiling - kirp.cpp for i386 Compiling - kpcicfg.cpp for i386 Compiling - kintrupt.cpp for i386 Compiling - klist.cpp for i386 Compiling - kadapter.cpp for i386 Compiling - klower.cpp for i386 Compiling - kpnpdev.cpp for i386 Compiling - kpnplow.cpp for i386 Compiling - kquery.cpp for i386 Compiling - kregkey.cpp for i386 Compiling - kresreq.cpp for i386 Compiling - kustring.cpp for i386 Compiling - ksfifo.cpp for i386 Compiling - kspin.cpp for i386 Compiling - kunitnam.cpp for i386 Compiling - kdevque.cpp for i386 Compiling - ksysthrd.cpp for i386 Compiling - ktimer.cpp for i386 Compiling - kevent.cpp for i386 Compiling - kmutex.cpp for i386 Compiling - ksemaphr.cpp for i386 Compiling - kdmqcsq.cpp for i386 Compiling - kdmqex.cpp for i386 Compiling - kdmaxfer.cpp for i386 Compiling - ktrace.cpp for i386 Compiling - kusb.cpp for i386 Compiling - khidaux.cpp for i386 d:\compuware\driverstudio\driverworks\include\khid.h(43) : error C1083: Cannot open include file: 'hidport.h': No such file or directory Compiling - getnames.cpp for i386 Compiling - kvxdintf.cpp for i386 Compiling - kstl.cpp for i386 Compiling - kstllmcb.cpp for i386 Compiling - kstlphs.cpp for i386 Compiling - kstlnphs.cpp for i386 Compiling - kstream.cpp for i386 Compiling - kstradpt.cpp for i386 Compiling - util.cpp for i386 Compiling - suballoc.cpp for i386 Compiling - k1394.cpp for i386 Compiling - k1394async.cpp for i386 Compiling - k1394isoc.cpp for i386 Compiling - kwmi.cpp for i386 Compiling - kwmistr.cpp for i386 Compiling - ksminidriver.cpp for i386 Compiling - kstdwmi.cpp for i386 Compiling - kbus.cpp for i386 Compiling - kphysdev.cpp for i386 Building Library - d:\compuw~1\driver~1\driver~4\lib\i386\vdw_wdm.lib for i386 lib() : error LNK1181: cannot open input file 'objchk\i386\khidaux.obj' BUILD: Done 110 files compiled - 1 Error 1 library built - 1 Error Errors in the build process. Cannot copy build result to DriverWorks\lib. 用vs2005生成的错误部分如下: ------ Using d:\WINDDK\2600 DDK ------ 已启动全部重新生成: 项目: VdwLibs, 配置: WDM Checked Win32 ------ 正在删除项目“VdwLibs”(配置“WDM Checked|Win32”)的中间文件和输出文件 正在编译... cpprt.cpp suballoc.cpp ..\..\Common\Source\suballoc.cpp(336) : error C2065: “pnode”: 未声明的标识符 ..\..\Common\Source\suballoc.cpp(352) : error C2227: “->m_larger”的左边必须指向类/结构/联合/泛型类型 类型是“'unknown-type'” ..\..\Common\Source\suballoc.cpp(354) : error C2227: “->m_larger”的左边必须指向类/结构/联合/泛型类型 类型是“'unknown-type'” ..\..\Common\Source\suballoc.cpp(355) : error C2227: “->m_larger”的左边必须指向类/结构/联合/泛型类型 类型是“'unknown-type'” ..\..\Common\Source\suballoc.cpp(355) : error C2227: “->m_smaller”的左边必须指向类/结构/联合/泛型类型 ..\..\Common\Source\suballoc.cpp(359) : error C2227: “->m_larger”的左边必须指向类/结构/联合/泛型类型 类型是“'unknown-type'” stcinit.cpp kstlphs.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int kstlnphs.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int kstllmcb.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int kstl.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int util.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(236) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(237) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(238) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(240) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(241) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(242) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(275) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(284): 参见对正在编译的类 模板 实例化“KIoRegisterSafe<T>”的引用 d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(276) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(411) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(412) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(413) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(415) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(416) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(417) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(450) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(459): 参见对正在编译的类 模板 实例化“KMemoryRegisterSafe<T>”的引用 d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(451) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(922) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(931) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(940) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(949) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(958) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(967) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1284) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1293) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1302) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1311) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1320) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(1329) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int kwmistr.cpp d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(88) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(89) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kustring.h(229) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(236) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(237) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(238) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(240) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(241) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(242) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int d:\Compuware\DriverStudio\DriverWorks\include\kaddress.h(275) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 请大家多多指教,共同学习,不甚感激 |
|
沙发#
发布于:2008-06-29 11:56
建议不要用vs2005编译这东东.毕竟ds3.2是03年代的东东,好多语法检查不如05严格
ds也最好不要用了,淘汰的东东了 |
|
|
板凳#
发布于:2008-07-02 22:03
志宁你好,如果不用ds,使用什么工具比较好?
|
|