无法解析类型 "boost::filesystem::path"



我已经下载了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-devlibboost-system-dev

最新更新