Error shooting of Driver building with VC + DDK + DS

本文列举并解决了五种常见的编译错误,包括MSVC版本不匹配、非法子系统参数、未解析的外部符号、项目构建命令路径错误以及PDB文件缺失导致的翻译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.      _MSC_VER too low

Well, the DDK version is too high, switch to VS 03.

MS VC++ 9.0 _MSC_VER = 1500

MS VC++ 8.0 _MSC_VER = 1400

MS VC++ 7.1 _MSC_VER = 1310

MS VC++ 7.0 _MSC_VER = 1300

MS VC++ 6.0 _MSC_VER = 1200

MS VC++ 5.0 _MSC_VER = 1100

2.      error in option subsystem:n

subsystem:n is elligal, just fix it at properties – linker –command line /subsystem:native. Ps, the two other parameters are windows and console. which indicate the enter point functions winmain and main.

3.      unresolved external symbol @__security_check_cookie@

Well, we don’t need the security feature. Just close it (/gs) at properties – c/c++ – code generation – buffer security check

4.      Project : error PRJ0019

the command path is error. Fix it at properties – build events – build-Post build event – command line

5.      error info:

Error translating xx.sys: Matching PDB file not found.

PROMPT=OFF

SoftICE is not active

Error translating C:/cos/pcscV6/pcsc/pcsc 驱动/objchk/i386/pcsc.sys: Matching PDB file not found.

Error executing d:/windows/system32/cmd.exe

 

Well, start the SoftICE, the error is still. How could the cmd.exe can’t be found? Well, remove the Chinese charactors in folder, then it works

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值