https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66030
--- Comment #2 from Hamza Alloush <hamzaalloush at live dot com> --- with gcc 5.1, i also have this bug, whenever i try to cross compile boost with mingw, as it tries to define codecvt_byname for ${BOOST_DIR}/libs/locale/src/std/codecvt.cpp ## undefined reference to `std::codecvt_byname<char, char, int>::codecvt_byname(char const*, unsigned int)' ## i use gcc 4.9.3 and i don't have this problem. http://pastebin.com/HcizTVkg