编译DS库文件出错

cokeliu 2007-01-27 12:39:54
我电脑上有VC6. 安装了ddk for xp后.再安装Driver stdio. 第一步开始编译Driver stdio的库文件. 可是编译DS库文件时候. 提示有一个错误如下:
khidaux.cpp
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\dep_wdm\hidport.h(6) : fatal error C1189: #error : The file is from the DDK at src\wdm\hid\inc. Install DDK HID samples to install hidport.h. Or update INCLUDE path for hidport.h in the D
DK!
好像是找不到hidport.h文件.我于是copy这个文件到ddk的目录下再编译.还是不行.
不管这个错误.我用DS设计了一个最简单的USB驱动. 在VC下编译/全部重建 OK.
但批构建时候又出错.
--------------------Configuration: test - Win32 Free--------------------
Compiling resources with DDK resource compiler...
Compiling with DDK compiler...
Test.cpp
TestDevice.cpp
Linking with DDK linker...
LINK : fatal error LNK1181: cannot open input file 'C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\lib\i386\free\vdw_wdm.lib'
Error executing link.exe.

test.sys - 1 error(s), 0 warning(s)
--------------------Configuration: Test_test - Win32 Free--------------------
Compiling with DDK compiler...
Test_test.cpp
Compiling...
OpenByIntf.cpp
Linking with DDK linker...

Test_test.exe - 0 error(s), 0 warning(s)
--------------------Configuration: Test_test - Win32 IA64 Free--------------------
Compiling with DDK compiler...
Test_test.cpp
Compiling...
OpenByIntf.cpp
Linking with DDK linker...

Test_test.exe - 0 error(s), 0 warning(s)
--------------------Configuration: Test_test - Win32 AMD64 Free--------------------
Compiling with DDK compiler...
Error spawning cl.exe

Test_test.exe - 1 error(s), 0 warning(s)
...全文
560 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
engerled 2010-08-09
  • 打赏
  • 举报
回复
the same with the above. solved the problem, Thank you very much!
COOLXJH 2009-09-06
  • 打赏
  • 举报
回复
我也遇到了类似问题,按照3楼朋友提供的方法将问题解决啦!谢谢!
yisea123 2007-02-15
  • 打赏
  • 举报
回复
要根据你电脑的cpu来选编译选项

你的是amd的还是intel的

还有是32位的还是64位的



cokeliu 2007-01-30
  • 打赏
  • 举报
回复
谢谢搂上两位的提示.我的ds 是3.1.0版本.
我的driver stdio的free库中只有两个库.lib文件. kndswdm.lib / vdw.lib
好像应该是3个库文件.
在编译DS库时候提示
d:windddk\2600\inc\wxp\hidport.h(6): fatal error c1189:#error:The file is fdrom the DDK at src\wdm\hid\inc. Install DDK HID samples to install hidportt.h. Or update INCLUDE path for hidport.h in the DDK.
我在DDK的wxp文件夹中有hidport.h头文件. 不知道怎么搞? 真的要重装DDK吗?
yisea123 2007-01-29
  • 打赏
  • 举报
回复
如果还有错,估计只有把ddk,driverstudio按顺序重新安装一遍了
yisea123 2007-01-29
  • 打赏
  • 举报
回复
你的driverstudio是3.1或3.2的吗?

是的话
按下面的步骤就应该没错了

1)点开始->所有程序
2)选择Compuware DriverStudio->Develop->DDK Build Setting,双击
3)在弹出的对话框中,点Launch Program启动VC
4)打开工程VdwLibs.dsw。工程在DriverStudio3.2安装目录下的DriverWorks->source下。
5)点VC菜单Build->Batch Build
6)在弹出的对话框中点Select X86按钮,然后点ReBuild All即可。Select X86是对我的机子而言,这里要根据实际情况进行选择。

如果是2.7的话步骤也差不多
cokeliu 2007-01-29
  • 打赏
  • 举报
回复
是啊.但我编译vdw_wdm.dsw工程时候.编译出错.我是按照网上操作一步步设置编译的.
yisea123 2007-01-27
  • 打赏
  • 举报
回复
不是库文件出错

在你能编译自己的程序之前

你必须先编译生成vdw_wdm.lib

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧