0

私は以下のgithubの場所からコードをコンパイルしようとしていますが、エラーが発生しました。

Githubプロジェクトはhttps://github.com/aranetic/process-pstです

エラーは

~/process-pst (master ✘)✭  ᐅ make
[  7%] Building CXX object CMakeFiles/ProcessPstLib.dir/edrm.cpp.o
/Users/gwest/process-pst/edrm.cpp: In function 'void<unnamed>::output_file(edrm_context&,        const std::wstring&, const std::wstring&, const std::vector<unsigned char,    std::allocator<unsigned char> >&)':
/Users/gwest/process-pst/edrm.cpp:177: error: 'class boost::filesystem::path' has no     member named 'file_string'
make[2]: *** [CMakeFiles/ProcessPstLib.dir/edrm.cpp.o] Error 1
make[1]: *** [CMakeFiles/ProcessPstLib.dir/all] Error 2
make: *** [all] Error 2

ありがとう

4

1 に答える 1

2

boost/filesystem/path.hppで確認できる内容から:

# if defined(BOOST_FILESYSTEM_DEPRECATED)
    //  deprecated functions with enough signature or semantic changes that they are
    //  not supplied by default 
    const std::string file_string() const               { return string(); }

    // ...

# endif

file_string() は「デフォルトでは提供されていません」。したがって、次の 3 つの選択肢があります。

  1. BOOST_FILESYSTEM_DEPRECATED フラグなしでブーストを再コンパイルする
  2. 古いブースト ライブラリを使用します。
  3. コンパイルしようとしているソース コードを修正します。
于 2013-03-05T11:54:38.003 に答える