【发布时间】:2023-03-11 16:47:01
【问题描述】:
当我在 IAR Workbench 上的代码上运行 PC-Lint 时,它与库头文件 yvals.h 中存在的代码 sn-p 冲突,我将其包含在下面,然后 PC-Lint 停止工作。
/* IAR compiler version check */
#if (__IAR_SYSTEMS_ICC__ < 9) || (__IAR_SYSTEMS_ICC__ > 9)
#error "DLib compiled with wrong (version of IAR) compiler"
#endif
我使用的 IAR 编译器版本是co-iar.lnt。我从 PC-Lint 配置文件中选择了这个编译器版本。
【问题讨论】: