提高“没有这样的文件或目录"的权限. [英] Boost "no such file or directory"

查看:100
本文介绍了提高“没有这样的文件或目录"的权限.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在新计算机上设置我的Code :: Blocks工作环境,但遇到了一些问题.自从我第一次这样做已经很长时间了,现在当我打开我的主要项目Boost会给我带来麻烦.

I'm trying to set up my Code::Blocks work environment on a new computer and I'm having some problems. It's been a long time since I first did this, and now when I open my major project Boost is causing me problems.

我还是C ++的新手,解决这类问题的经验有限.

I'm fairly new to C++ still and fixing this type of problem is something I have limited experience with.

当我打开项目并尝试对其进行编译时,出现此错误:

When I open my project and try to compile it, I get this error:

严重错误:boost/algorithm/string.hpp:没有这样的文件或目录|

fatal error: boost/algorithm/string.hpp: No such file or directory|

在我的头文件之一的这一部分:

At this part of one of my header files:

#include <boost/algorithm/string.hpp>

我将Boost v1.51.0库放在C:\ boost,因为那是我在另一台计算机上存放的地方.我的项目设置为在该目录中搜索其他包含项,但似乎找不到文件?

I placed the Boost v1.51.0 library at C:\boost since that is where I'd had it on my other computer. My project is set to search that directory for additional includes but it doesn't seem to be finding the files?

我的项目以前使用过较早的Boost版本,但我怀疑这是一个问题.

My project used an older version of Boost previously but I doubt that's an issue.

我不确定使用有限的信息来调试此问题有多么困难,因此,如果我还有其他可以提供的信息,请告诉我.

I'm not sure how difficult it is to debug this problem with this limited information so if there's anything else I can provide please let me know.

我正在使用Code :: Blocks,并且刚刚设置了minGW和Visual C ++ 2010.

I'm using Code::Blocks, and have just set up minGW and Visual C++ 2010.

推荐答案

在Ubuntu中使用

sudo apt-get install libboost-dev

这篇关于提高“没有这样的文件或目录"的权限.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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