代码::块找不到向量头

发布于 2024-10-29 18:06:49 字数 627 浏览 5 评论 0原文

编辑:在托马拉克的帮助下,我已经解决了这个问题。看来我在腾出空间来安装 code::blocks 时错误地卸载了 libstdc++6-4.4-dev_4.4.3,从而删除了 STL 标头。 Code::Blocks 现在工作得很好。

大家好,我又回来打扰你们了。

我最近安装了 Code::Blocks 以便跟随 SDL 教程,主要是为了使文件创建过程更容易(即暂时不必处理 makefile)

我一直在编译/运行示例(到目前为止)还好,但我现在遇到了障碍。

在实体教程中,头文件包含。 - 但 code::blocks 表示找不到所述头文件。它是一个 .h 头文件,但它会将其识别为 C++(我认为,从项目选项来看) - 我所有的头文件都是 .h,我所有的源代码都是 .cpp...

我已经在 Google 上搜索了解决方案,并且很多人们表示,当他们尝试错误地在 .c 文件中使用时,就会发生此错误。情况并非如此,除非 Code::Blocks 将我的 .h 识别为 C 标头。

如果您想知道,我正在运行 Lucid Puppy Linux 5.2(又名 LuPu),它是 Ubuntu 的衍生版本。 (来自 Ubuntu 存储库的已安装代码::Blocks)

预先,非常感谢您的帮助。

EDIT: I have solved this problem, with Tomalak's help. It appears that I mistakenly uninstalled libstdc++6-4.4-dev_4.4.3 when I was making space to install code::blocks into, thus removing the STL headers. Code::Blocks now works perfectly fine.

Hey everyone, I'm back yet again to bug you.

I have recently installed Code::Blocks in order to follow along with a SDL tutorial, mainly to make it easier with the file creation process (i.e. not having to deal with makefiles for the time being)

I have been compiling/running the examples (so far) just fine, but I've now hit a snag.

On the tutorial for entities, the header file includes <vector> - yet code::blocks is stating it cannot find said header file. It's a .h header file, but it's recognizing it as C++ (I think, judging from the project options) - all my headers are .h, all my sources are .cpp...

I have searched Google for a solution, and many people state that this error occurs when they try to use in a .c file by mistake. This is not the case, unless Code::Blocks is recognizing my .h as a C-header.

In case you're wondering, I am running Lucid Puppy Linux 5.2 (aka LuPu), a Ubuntu derivative. (Installed Code::Blocks from the Ubuntu repositories)

In advance, thank you very much for the help.

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

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

发布评论

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

评论(1

瞳孔里扚悲伤 2024-11-05 18:06:49

事实证明,这不是 Code::Blocks 问题 - 我错误地卸载了 libstdc++6-4.4-dev_4.4.3 软件包。

因此,如果你们中有人遇到同样的问题,请确保安装了 libstdc++ 开发文件!哈哈

As it turns out, it was not a Code::Blocks issue - I had mistakenly un-installed the libstdc++6-4.4-dev_4.4.3 package.

So, if any of you all get this same problem make sure the libstdc++ development files are installed! LOL

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