#include #include #include #include #include #include int main(int argc, char **argv) { for(int i = 1; i < argc; ++i) { try { boost::filesystem::create_directory(argv[i]); } catch(boost::filesystem::filesystem_error &ex) { std::cerr << boost::format("%s\n" "native_error = %d, " "error = %d, " "errno = %d, " "strerror(errno) = \"%s\"\n" ) % ex.what() % ex.native_error() % ex.error() % errno % std::strerror(errno); } } }