diff --git a/CMakeLists.txt b/CMakeLists.txt index e9d55eef..79d0ed21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ ENDIF () link_directories ("${PROJECT_LIBS_DIR}/yaml-cpp/build") link_directories ("${PROJECT_LIBS_DIR}/libloadorder/build") -link_directories ("${PROJECT_LIBS_DIR}/zlib") +link_directories ("${PROJECT_LIBS_DIR}/zlib/build") link_directories ("${PROJECT_LIBS_DIR}/wxWidgets/lib") # Settings when compiling and cross-compiling on Linux. @@ -61,7 +61,7 @@ IF (CMAKE_HOST_SYSTEM_NAME MATCHES "Linux") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--subsystem,windows") ENDIF () - set (BOSS_LIBS ${BOSS_LIBS} zlibstatic loadorder yaml-cpp boost_log_setup boost_log boost_locale boost_thread_win32 boost_chrono boost_date_time boost_filesystem boost_system boost_regex) + set (BOSS_LIBS ${BOSS_LIBS} zlibstatic loadorder${PROJECT_ARCH} yaml-cpp boost_log_setup boost_log boost_locale boost_thread_win32 boost_chrono boost_date_time boost_filesystem boost_system boost_regex) ENDIF () # Settings when compiling on Windows. diff --git a/README.md b/README.md index 27c70b22..769f217d 100644 --- a/README.md +++ b/README.md @@ -84,14 +84,17 @@ echo "using gcc : 4.6.3 : i686-w64-mingw32-g++ : i686-w64-mingw32-windres . */ +#ifndef __BOSS_STREAMS__ +#define __BOSS_STREAMS__ #include #include @@ -29,3 +31,5 @@ namespace boss { typedef boost::iostreams::stream< boost::iostreams::file_descriptor_source > ifstream; typedef boost::iostreams::stream< boost::iostreams::file_descriptor > fstream; } + +#endif diff --git a/src/gui/editor.cpp b/src/gui/editor.cpp index d3d03421..cd8d21b5 100644 --- a/src/gui/editor.cpp +++ b/src/gui/editor.cpp @@ -27,6 +27,7 @@ #include #include +#include using namespace std; @@ -650,7 +651,8 @@ void Editor::OnQuit(wxCommandEvent& event) { << YAML::Key << "plugins" << YAML::Value << _editedPlugins << YAML::EndMap; - boss::ofstream out(fs::path(_userlistPath)); + boost::filesystem::path p(_userlistPath); + boss::ofstream out(p); out << yout.c_str(); out.close(); }