NetBeans 6.8 将关键字标记为错误

发布于 2024-09-27 21:06:36 字数 334 浏览 7 评论 0原文

我刚刚安装了 NetBeans 6.8。在 Ubuntu 10.04 上,它将 C++ 关键字(例如“using”或“namespace”)标记为错误。我检查了它是否使用 g++ 进行编译,并且已经在这里找到了答案,但是 Netbeans 中存在一个错误,该错误已通过几天内的更新修复。当我尝试更新时,它告诉我,我有最新版本......毫不奇怪...... 如果我定义了一个类并想在主文件中使用它,则两者都不起作用。我的类的头文件已包含在内;-) 实际上,当我写类似 myClass::myMethod(int n){ myClass::Variable +=n;} 的内容时,它甚至不接受圆括号中 n 的定义......

有人有想法吗?

I have just installed NetBeans 6.8. on Ubuntu 10.04 and it marks c++ keywords such as "using" or "namespace" as a fault. I checked that it compiles with g++ and I found an answer to that already here, but there it was a bug in Netbeans which had been fixed via updates within a few days. When I try to update, it tells me, I have the latest version...no surprise...
If I define me a class and want to use it in the main file, it does neither work. The header file of my class is included ;-)
And actually, when I write something like myClass::myMethod(int n){ myClass::Variable +=n;} it does not even accept the definition of n in the round brackets...

Does anybody have an idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

酷遇一生 2024-10-04 21:06:36

最新版本是6.91。如果您遇到更新问题,您可能需要从 netbeans.org 重新下载。包管理器可能没有最新版本。

当你说你有错误时,这些错误是在编译时出现的,还是IDE在编译前用红色下划线显示的? IDE 试图提供帮助,但有时不是很准确。

The latest version is 6.91. You might have to download it again from netbeans.org if you're having issues with the update. Package manager may not have the latest version.

When you say you have errors are they when compiling or is the IDE underlining them in red before you compile? The IDE tries to be helpful but it's not very accurate sometimes.

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