Netbeans无法解析符号c ++ 11 [英] Netbeans can't resolve symbol c++11

查看:337
本文介绍了Netbeans无法解析符号c ++ 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Netbeans 8.0。当c ++ 11标准打开它不能解决矢量方法像push_back或大小。它没有显示任何关于这些方法的文档,它突出显示它们像错误。但它编译好,工作正确。
这里是一个简单的例子:

I use Netbeans 8.0. And when c++11 standard turned on it can't resolve vectors methods like push_back or size. It doesnt show any documentation about these methods and it highlights them like errors. But it compiles good and works right. Here it is a simple example:

http://i.stack.imgur.com/VV5RZ.png

如何解决这个问题?

推荐答案

我有同样的问题,所以我需要添加一些包含目录到工具 - >选项 - > C / C ++ - >代码帮助 - > C ++编译器:

I had the same problem, so I needed to add a number of include directories into the dialog box Tools -> Options -> C/C++ -> Code Assistance -> C++ Compiler:

这篇关于Netbeans无法解析符号c ++ 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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