まだリリースされていないのに、ブーストプロセスイベントを使用したいと思います。私はブーストプロセスで例外が見つからない
svn co svn://svn.boost.org/svn/boost/sandbox/process/ boost-process
はパス(-I
)と#included
<boost/process.hpp>
を含めるようにboost-process
を追加しましたが、コンパイルさは約filesystem_error
定義されていないと文句を言う:
boost-process/boost/process/operations.hpp: In function ‘std::string boost::process::find_executable_in_path(const string&, std::string)’:
boost-process/boost/process/operations.hpp:85:36: error: ‘filesystem_error’ is not a member of ‘boost::filesystem3’
In file included from boost-process/boost/process.hpp:42:0,
from tests/../fio.hpp:22,
from tests/t_histogram.cpp:18:
boost-process/boost/process/operations.hpp:130:32: error: ‘filesystem_error’ is not a member of ‘boost::filesystem3’
私はboost::filesystem3
にも同様の結果が得られた名前空間を変更してみました。
filesystem_error
のdefintionは
class BOOST_SYMBOL_VISIBLE filesystem_error : public system::system_error
はそれを隠しBOOST_SYMBOL_VISIBLE
ですか?
私の経験では、soc2010のような新しいバージョンのboost.processを使用する方が良いでしょう。http://www.highscore.de/boost/gsoc2010/process.zip http://www.highscore.de/boost/gsoc2010/ – alfC