×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

请教VC/DDK 编译环境问题, 如何在编译时,忽略/跳过 signed/unsigned mismatch 的错误

用DDK build enviroment 编译一个open source 的驱动程序,
出现了很多错误,
irttp.c(275) : error C2220: warning treated as error - no object file generated
irttp.c(275) : error C4018: '<=' : signed/unsigned mismatch
irttp.c(451) : error C4242: '=' : conversion from 'int' to '__u8', possible loss
of data
irttp.c(1234) : error C4018: '<' : signed/unsigned mismatch
irttp.c(1312) : error C4018: '<' : signed/unsigned mismatch

我想让VC 编译器 或者DDK build enviroment 也好(不清楚到底哪一个出了问题), 忽略这些错误。
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 请教VC/DDK 编译环境问题, 如何在编译时,忽略/跳过 signed/unsigned mismatch 的错误
    用DDK build enviroment 编译一个open source 的驱动程序,
    出现了很多错误,
    irttp.c(275) : error C2220: warning treated as error - no object file generated
    irttp.c(275) : error C4018: '<=' : signed/unsigned mismatch
    irttp.c(451) : error C4242: '=' : conversion from 'int' to '__u8', possible loss
    of data
    irttp.c(1234) : error C4018: '<' : signed/unsigned mismatch
    irttp.c(1312) : error C4018: '<' : signed/unsigned mismatch

    我想让VC 编译器 或者DDK build enviroment 也好(不清楚到底哪一个出了问题), 忽略这些错误。
    • What's your compile flag?
      • 不知道到哪里去找编译选项, 只是在DDK 环境下运行BUILD 命令
    • 1. It's better to fix it by casting, not ignore. 2. Under DDK build environment, you need to put the compile options into file "Sources".