diff -ur violetland-v0.4.3/CMakeLists.txt violetland-v0.4.3.new/CMakeLists.txt --- violetland-v0.4.3/CMakeLists.txt 2012-10-25 13:33:44.000000000 +0000 +++ violetland-v0.4.3.new/CMakeLists.txt 2012-10-25 10:04:16.835289639 +0000 @@ -8,7 +8,6 @@ find_package(SDL_mixer REQUIRED) find_package(OpenGL REQUIRED) find_package(Boost COMPONENTS filesystem system REQUIRED) -add_definitions(-DBOOST_FILESYSTEM_VERSION=2) if(${MINGW}) set(INTL_LIBRARY intl) diff -ur violetland-v0.4.3/src/system/utility/FileUtility.cpp violetland-v0.4.3.new/src/system/utility/FileUtility.cpp --- violetland-v0.4.3/src/system/utility/FileUtility.cpp 2012-10-25 13:33:44.000000000 +0000 +++ violetland-v0.4.3.new/src/system/utility/FileUtility.cpp 2012-10-25 10:40:04.986273041 +0000 @@ -20,7 +20,7 @@ while (dir_it != boost::filesystem::directory_iterator()) { if (boost::filesystem::is_regular_file(*dir_it)) - files.push_back(dir_it->filename()); + files.push_back(dir_it->path().filename().string()); ++dir_it; } return files; @@ -32,8 +32,8 @@ while (dir_it != boost::filesystem::directory_iterator()) { if (boost::filesystem::is_directory(*dir_it)) - if (dir_it->path().filename()[0] != '.') - subDirs.push_back(dir_it->path().filename()); + if (dir_it->path().filename().string()[0] != '.') + subDirs.push_back(dir_it->path().filename().string()); ++dir_it; } return subDirs; @@ -45,7 +45,7 @@ while (dir_it != boost::filesystem::directory_iterator()) { if (boost::filesystem::is_directory(*dir_it)) - if (dir_it->path().filename()[0] != '.') + if (dir_it->path().filename().string()[0] != '.') ++count; ++dir_it; }