pclint error10和error129怎么理解

syxycs 2011-05-07 02:37:35
请教下各位,pclint的error信息10和129怎么理解呢?报这两个错的地方总是搞的我莫名奇妙
10 Expecting 'String' -- String is the expected token. The
expected token could not be found. This is commonly given when
certain reserved words are not recognized.

int __interrupt f();

will receive an Expecting ';' message at the f because it thinks
you just declared __interrupt. The cure is to establish a new
reserved word with +rw(__interrupt). Also, make sure you are
using the correct compiler options file.

129 declaration expected, identifier 'Symbol' ignored -- In a
context in which a declaration was expected an identifier was
found. Moreover, the identifier was not followed by '(' or a '['

还有个问题:pclint检查到这句代码#import ".\bin\msado15.dll" no_namespace rename("EOF","adoEOF") rename("BOF","adoBOF")时报错:error 322: (Error -- Unable to open include file 'msado15.tlh'),找不到msado15.tlh可以理解,毕竟是编译后生成的,如何修正这个问题呢,322是说的是致命错误,不好直接屏蔽
...全文
1012 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lbxxxxx 2013-07-31
  • 打赏
  • 举报
回复
error 10:是碰上了PClint不认识的类型,可以加选项 +rw(类型),就可以屏蔽这类提示。 error 129:在一个上下文中期望一个声明,但是发现一个标识符,甚至,标识符不能跟着一个'(' 或一个'[。意思是在上下文中缺少一个'Symbol' 标识符的声明,需要添上。 error 322: 是不能打开头文件,可能你包含的头文件路径不对。
imageprocessing 2012-12-06
  • 打赏
  • 举报
回复
10号错误让人摸不着头脑。
hnuqinhuan 2011-05-07
  • 打赏
  • 举报
回复
syxycs 2011-05-07
  • 打赏
  • 举报
回复
环境是windows xp sp3 vs2008

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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