Netbeans 7.2 显示“无法解析标识符", 虽然构建成功 [英] Netbeans 7.2 shows "Unable to resolve identifier" , although build is successful

查看:34
本文介绍了Netbeans 7.2 显示“无法解析标识符", 虽然构建成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Netbeans IDE 7.2C/C++ 插件(最新版本 1.18.1.1)和如果我构建我的项目一切正常,但 IDE 会向我显示错误(例如,无法解析标识符...)

I'm using the Netbeans IDE 7.2 with C/C++ plugin (last version 1.18.1.1) and if I build my project everything is fine but the IDE show me errors (e.g. unable to resolve identifier ...)

其他人有这个错误,我该如何解决?

Anyone else have this bug and how can I solve it?

推荐答案

这是我对另一个问题的回答的摘录.

Here's an excerpt from my answer to another question.

未解析的标识符

如果.cpp文件的来源是这样的

If the source of the .cpp file looks like this

在您的项目上单击鼠标右键.
检查 C/C++ Code As...
运行重新解析项目.

Click with the right mouse button on your project.
Check C/C++ Code As...
Run Reparse Project.

如果这还不够.
转到 项目属性
按照说明填写 Include 输入字段.

If that is not enough.
Go to Project Properties
Fill in the Include input field as described.

正确设置包含路径.

希望能帮到你.

这篇关于Netbeans 7.2 显示“无法解析标识符", 虽然构建成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆