使用boost filesystem遍历文件夹的时候,需要先进行一些配置:
包含的头文件:(这一部分不太明白,总之这样程序可以正常运行,先记下来)
<span style="font-size:14px;">#define BOOST_ALL_NO_LIB
#include <boost/progress.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/assign.hpp>
#include <boost/xpressive/xpressive_dynamic.hpp>
#include <boost/algorithm/string_regex.hpp>
#include <libs/filesystem/src/codecvt_error_category.cpp>
#include <libs/filesystem/src/operations.cpp>
#include <libs/filesystem/src/path_traits.cpp>