Eclipse CDT 无法正确解析“unsigned int myVar;”
我在Ubuntu下使用Eclipse CDT Helios遇到奇怪的问题 屏幕截图在这里 https://i.sstatic.net/xaDVv.jpg
int MiniMsg::parseChecksum() {
unsigned int dint; // this if flagged as syntax error by Eclipse only!!
uint32_t d32;
return parseItem(chkStart, chkEnd, checksum);
}
定义'dint' 无法识别并标记为语法错误。 实际上,任何“有符号/无符号类型变量”形式的定义都无法被识别......
有什么想法吗?
I encounter strange problem with Eclipse CDT Helios under Ubuntu
The screen shot is here https://i.sstatic.net/xaDVv.jpg
int MiniMsg::parseChecksum() {
unsigned int dint; // this if flagged as syntax error by Eclipse only!!
uint32_t d32;
return parseItem(chkStart, chkEnd, checksum);
}
The definition of 'dint' is not recognized and flagged as syntax error.
Actually any definition of the form 'signed/unsigned type var' is not recognized...
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常黄色波浪线意味着编译器警告,并且根据该变量从未使用过的事实猜测,它可能会抱怨这一点。
警告将类似于:
foo.c:3: warning: 'unsigned int dint' Defined but not use
Usually a yellow squiggly means a compiler warning, and guessing by the fact that that variable is never used, it is probably complaining about that.
The warning would be something along the lines of:
foo.c:3: warning: 'unsigned int dint' defined but not used