Boost C++ Libraries: Ticket #11980: Windows Phone Build Error https://svn.boost.org/trac10/ticket/11980 <p> After adding given code block Visual Studio doesnt compile the project. Version is 1.66.0 </p> <pre class="wiki">boost::locale::generator g; g.locale_cache_enabled(true); std::locale loc = g(boost::locale::util::get_system_locale()); string t = boost::locale::conv::from_utf&lt;char&gt;(row.GetString(0), loc); </pre><p> And this is the output: </p> <blockquote class="citation"> <p> libboost_locale-vc140-mt-gd-1_60.lib(default_locale.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>GetLocaleInfoA@16 referenced in function "class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; <span class="underline">cdecl boost::locale::util::get_system_locale(bool)" (?get_system_locale@util@locale@boost@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) </span></p> </blockquote> <p> 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(std_backend.obj) : error LNK2001: unresolved external symbol <span class="underline">imp</span>GetLocaleInfoA@16 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(lcid.obj) : error LNK2001: unresolved external symbol <span class="underline">imp</span>GetLocaleInfoA@16 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(codepage.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>IsDBCSLeadByteEx@8 referenced in function "void <span class="underline">cdecl boost::locale::conv::impl::multibyte_to_wide_one_by_one(int,char const *,char const *,class std::vector&lt;wchar_t,class std::allocator&lt;wchar_t&gt; &gt; &amp;)" (?multibyte_to_wide_one_by_one@impl@conv@locale@boost@@YAXHPBD0AAV?$vector@_WV?$allocator@_W@std@@@std@@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(lcid.obj) : error LNK2019: unresolved external symbol </span>imp<span class="underline">EnumSystemLocalesA@8 referenced in function </span>catch$?proc@impl_win@locale@boost@@YGHPAD@Z$0 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(converter.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>FoldStringW@20 referenced in function "class std::basic_string&lt;wchar_t,struct std::char_traits&lt;wchar_t&gt;,class std::allocator&lt;wchar_t&gt; &gt; <span class="underline">cdecl boost::locale::impl_win::wcsnormalize(enum boost::locale::norm_type,wchar_t const *,wchar_t const *)" (?wcsnormalize@impl_win@locale@boost@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@W4norm_type@23@PB_W1@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(converter.obj) : error LNK2019: unresolved external symbol </span>imp<span class="underline">LCMapStringW@24 referenced in function "class std::basic_string&lt;wchar_t,struct std::char_traits&lt;wchar_t&gt;,class std::allocator&lt;wchar_t&gt; &gt; </span>cdecl boost::locale::impl_win::win_map_string_l(unsigned int,wchar_t const *,wchar_t const *,class boost::locale::impl_win::winlocale const &amp;)" (?win_map_string_l@impl_win@locale@boost@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IPB_W0ABVwinlocale@123@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(collate.obj) : error LNK2001: unresolved external symbol <span class="underline">imp</span>LCMapStringW@24 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(collate.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>CompareStringW@24 referenced in function "int <span class="underline">cdecl boost::locale::impl_win::wcscoll_l(enum boost::locale::collator_base::level_type,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,class boost::locale::impl_win::winlocale const &amp;)" (?wcscoll_l@impl_win@locale@boost@@YAHW4level_type@collator_base@23@PB_W111ABVwinlocale@123@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(numeric.obj) : error LNK2019: unresolved external symbol </span>imp<span class="underline">GetDateFormatW@24 referenced in function "class std::basic_string&lt;wchar_t,struct std::char_traits&lt;wchar_t&gt;,class std::allocator&lt;wchar_t&gt; &gt; </span>cdecl boost::locale::impl_win::wcs_format_date_l(wchar_t const *,struct _SYSTEMTIME const *,class boost::locale::impl_win::winlocale const &amp;)" (?wcs_format_date_l@impl_win@locale@boost@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PB_WPBU_SYSTEMTIME@@ABVwinlocale@123@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(numeric.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>GetTimeFormatW@24 referenced in function "class std::basic_string&lt;wchar_t,struct std::char_traits&lt;wchar_t&gt;,class std::allocator&lt;wchar_t&gt; &gt; <span class="underline">cdecl boost::locale::impl_win::wcs_format_time_l(wchar_t const *,struct _SYSTEMTIME const *,class boost::locale::impl_win::winlocale const &amp;)" (?wcs_format_time_l@impl_win@locale@boost@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@PB_WPBU_SYSTEMTIME@@ABVwinlocale@123@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(numeric.obj) : error LNK2019: unresolved external symbol </span>imp<span class="underline">GetLocaleInfoW@16 referenced in function "struct boost::locale::impl_win::numeric_info </span>cdecl boost::locale::impl_win::wcsnumformat_l(class boost::locale::impl_win::winlocale const &amp;)" (?wcsnumformat_l@impl_win@locale@boost@@YA?AUnumeric_info@123@ABVwinlocale@123@@Z) 3&gt;libboost_locale-vc140-mt-gd-1_60.lib(numeric.obj) : error LNK2019: unresolved external symbol <span class="underline">imp</span>GetCurrencyFormatW@24 referenced in function "class std::basic_string&lt;wchar_t,struct std::char_traits&lt;wchar_t&gt;,class std::allocator&lt;wchar_t&gt; &gt; <span class="underline">cdecl boost::locale::impl_win::wcsfmon_l(double,class boost::locale::impl_win::winlocale const &amp;)" (?wcsfmon_l@impl_win@locale@boost@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@NABVwinlocale@123@@Z) 3&gt;libboost_system-vc140-mt-gd-1_60.lib(error_code.obj) : error LNK2019: unresolved external symbol </span>imp<span class="underline">LocalFree@4 referenced in function "public: </span>thiscall boost::system::detail::local_free_on_destruction::~local_free_on_destruction(void)" (??1local_free_on_destruction@detail@system@boost@@QAE@XZ) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11980 Trac 1.4.3 yigit.ozcelik@… Thu, 11 Feb 2016 19:48:15 GMT attachment set https://svn.boost.org/trac10/ticket/11980 https://svn.boost.org/trac10/ticket/11980 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">1F3E0EFB.PNG</span> </li> </ul> Ticket anonymous Fri, 12 Feb 2016 09:32:10 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11980#comment:1 https://svn.boost.org/trac10/ticket/11980#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Artyom Beilis</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">locale</span> </li> </ul> Ticket