AIX 上的 Netbeans 6.8 中的 STL 命名空间问题

发布于 2024-08-24 14:54:25 字数 295 浏览 5 评论 0原文

我正在尝试在 AIX 操作系统上使用 NetBeans 6.8 进行 C++ 开发。

我继续收到以下错误消息:

using namespace std;

即使在通过以下方式添加 STL 的包含内容之后

选项 -- c/c++ -- 代码帮助

错误提示:“无法解析标识符 std”

这是 Netbeans 6.8 AIX 版本中的错误吗?或者我错过了什么?

感谢您的帮助!

I'm trying to use NetBeans 6.8 on an AIX OS for C++ development.

I continue getting an error message for:

using namespace std;

even after adding the includes for the STL via

options -- c/c++ -- code assistance

The error says: "Unable to resolve identifier std"

Is this a bug in the Netbeans 6.8 AIX version? Or am I missing something?

Thanks for any help!

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

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

发布评论

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

评论(1

第七度阳光i 2024-08-31 14:54:33

添加来轻松测试是否在 using 指令之前包含任何 std 命名空间

namespace std
{
}

您可以通过在 using 指令之前 。如果编译器现在满意,那么实际上没有包含 std 命名空间内容。

You can easily enough test if there is no std namespace getting included before your using directive by adding in

namespace std
{
}

just before it. If the compiler is now happy then there was no std namespace stuff actually included.

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