Boost C++ Libraries: Ticket #12011: Boost.Regex always links against dynamic DLLs of ICU with MSVC https://svn.boost.org/trac10/ticket/12011 <p> I found out there is no detection code of static ICU in the Regex (and Locale) Jamfiles. </p> <p> I have blogged about the problem and solution <a class="ext-link" href="http://www.npcglib.org/~stathis/blog/2016/02/21/windows-task-building-boost-against-static-icu-with-msvc/"><span class="icon">​</span>here</a>. To cut a long story short, sicuXX.lib files should be detected when static linking and also if the runtimes are static, instead of &lt;linkflags&gt;, the &lt;archiveflags&gt; feature should be used. </p> <p> I have written a rough patch for my own use, which does that, but it may not be entirely clean for upstream. It is <a class="ext-link" href="http://www.npcglib.org/~stathis/downloads/boost_1.60.0.patch"><span class="icon">​</span>here</a> though in case you decide to fix it properly. </p> <p> It would be nice until (and if at all) this is fixed the documentation or at build time this limitation was made clear. Currently the user is left to believe he has a statically linked Boost against ICU. </p> <p> I will try to improve my patch in the next iteration, but I'm still learning Boost.Build. </p> <p> thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12011 Trac 1.4.3 John Maddock Sat, 11 Jun 2016 17:50:04 GMT <link>https://svn.boost.org/trac10/ticket/12011#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12011#comment:1</guid> <description> <p> I'm struggling to find any information on building ICU static libraries for MSVC (other than your blog). Am I right in thinking that this is not officially supported? </p> <p> In any case, no Boost changes are required for building the library against static ICU with static Boost.Regex as the process of building the archive doesn't need to reference ICU at all in that case anyway (just find the headers, the binaries aren't required until you link your program). </p> <p> What is probably needed is an update to the ICU detection code, so that when "&lt;runtime-link&gt;static" is used it looks for static ICU. I believe the patch here: <a class="ext-link" href="https://github.com/boostorg/regex/commit/acade9f20c9ff439e71b1c919c3c4889bf98aebf"><span class="icon">​</span>https://github.com/boostorg/regex/commit/acade9f20c9ff439e71b1c919c3c4889bf98aebf</a> should have this working now. Can you please double check for me? </p> </description> <category>Ticket</category> </item> </channel> </rss>