NetBeans 6.8 将关键字标记为错误
我刚刚安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新版本是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.