我想使用 Boost Process,尽管它还没有发布。我做了
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
隐藏了吗?