无法解析类型 "boost::filesystem::path"
type "boost::filesystem::path" could not be resolved
我已经下载了violetland的主干存储库,并且得到了错误Type 'boost::filesystem::path' could not be resolved
。我已经安装了boost库,boost/filesystem.hpp
也包含在内。
我该如何解决这个问题?
系统:
-linux mint 13 x64
-eclipse靛蓝
-如果你需要更多的信息。
代码样本:
#ifndef FILEUTILITY_H_
#define FILEUTILITY_H_
#include <vector>
#include <sys/stat.h>
#include <cstdlib>
#include <string>
#include <boost/filesystem.hpp>
class FileUtility {
private:
boost::filesystem::path m_appPath, m_resPath, m_usrPath;
public:
enum PathType {
common = 0, image, anima, sound, music, monsters, weapon, user
};
FileUtility(char *argPath);
static void truncateFullPathToDir(char *path);
void traceResPath();
void setFullResPath(std::string path);
boost::filesystem::path getFullPath(PathType type, std::string resource) const;
std::vector<std::string> getFilesFromDir(boost::filesystem::path dir);
unsigned int getFilesCountFromDir(boost::filesystem::path dir);
std::vector<std::string> getSubDirsFromDir(boost::filesystem::path dir);
unsigned int getSubDirsCountFromDir(boost::filesystem::path dir);
};
#endif /* FILEUTILITY_H_ */
boost::filesystem::path
的每次使用都被标记为如上所述的错误。
我不得不安装libboost-filesystem-dev
和libboost-system-dev
相关文章:
- 传递 boost::filesystem::p ath 到 boost::p rocess::child 会导致 Win
- 这是 boost::filesystem 中的错误吗?为什么 boost::filesystem::p ath::str
- 使用boost::filesystem和boost::lexical_cast从文件名中提取数字
- std::string references、std::regex和boost::filesystem的基本概念
- 在macOS High Sierra上使用Boost.Filesystem编译时的链接器错误
- boost :: filesystem :: space()报告错误的磁盘空间
- boost :: filesystem :: verver()无法访问文件,因为另一个过程正在使用该文件
- 使用 boost::filesystem 迭代目录时可以更改文件的顺序吗?
- Boost Filesystem flowly_caronical不会在没有父文件夹的情况下解决相对路径
- 如何处理boost :: fileSystem ::路径的空间
- 在Windows 10中的Boost :: FileSystem :: remove_all遇到问题
- 如何替换从 boost::filesystem::weakly_relative 和 std::filesystem::
- boost::filesystem::recursive_directory_iterator 在 C:Users
- 错误:无法通过'...'传递非平凡可复制类型的对象'class boost::filesystem::path'
- boost::filesystem::path.parent_path() and whitespace
- 如何使用 boost::filesystem 检查路径是否是可创建的文件
- /usr/include/boost/filesystem/path.hpp:307:未定义对'boost::files
- iostream GCC错误,转换为boost::filesystem::iostream for Windows
- 如何与CMAKE一起使用VS 2017编译的Boost Filesystem库
- boost/filesystem.hpp未通过Homebrew安装的OSX Boost链接