我想使用升壓過程事件,但它尚未發佈。我做升壓過程中缺少異常
svn co svn://svn.boost.org/svn/boost/sandbox/process/ boost-process
添加boost-process
包括路徑(-I
)和#included
<boost/process.hpp>
但是編譯抱怨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
把定義是
class BOOST_SYMBOL_VISIBLE filesystem_error : public system::system_error
是BOOST_SYMBOL_VISIBLE
隱藏呢?
根據我的經驗,最好使用更新版本的boost.process,比如soc2010:http://www.highscore.de/boost/gsoc2010/process.zip http://www.highscore.de/boost/gsoc2010/ – alfC