代码::块找不到向量头
编辑:在托马拉克的帮助下,我已经解决了这个问题。看来我在腾出空间来安装 code::blocks 时错误地卸载了 libstdc++6-4.4-dev_4.4.3,从而删除了 STL 标头。 Code::Blocks 现在工作得很好。
大家好,我又回来打扰你们了。
我最近安装了 Code::Blocks 以便跟随 SDL 教程,主要是为了使文件创建过程更容易(即暂时不必处理 makefile)
我一直在编译/运行示例(到目前为止)还好,但我现在遇到了障碍。
在实体教程中,头文件包含
我已经在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这不是 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