Eclipse CDT 无法正确解析“unsigned int myVar;”

发布于 2025-01-06 16:55:48 字数 440 浏览 1 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

靖瑶 2025-01-13 16:55:48

通常黄色波浪线意味着编译器警告,并且根据该变量从未使用过的事实猜测,它可能会抱怨这一点。

警告将类似于:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文