Boost C++ Libraries: Ticket #11833: Boost usage of __int128 when compiled with clang-cl https://svn.boost.org/trac10/ticket/11833 <p> Boost compiled with clang-cl targetting MSVC toolchain should not probably use <span class="underline">int128 as the support functions </span>umodti3 and friends, usually available from libgcc are not available from the MSVC libs leading to error LNK2019: unresolved external symbol <span class="underline">umodti3. </span></p> <p> This may be solved either by using compiler-rt along with the MSVC libs or by not defining BOOST_HAS_INT128 in clang.hpp: </p> <p> #if defined(<span class="underline">SIZEOF_INT128</span>) &amp;&amp; !defined(<span class="underline">CUDACC</span>) &amp;&amp; !defined(_MSC_VER) # define BOOST_HAS_INT128 #endif </p> <p> I'm not sure which is the right way to go here, but this should be at least be documented. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11833 Trac 1.4.3 Yaron Keren <yaron.keren@…> Mon, 07 Dec 2015 21:58:37 GMT <link>https://svn.boost.org/trac10/ticket/11833#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11833#comment:1</guid> <description> <p> Just noticed all the double underscore symbols turned to underline, oh well. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 08 Dec 2015 08:56:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11833#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11833#comment:2</guid> <description> <p> I'll make the change but this should be reported as a bug to clang as <span class="underline">int128 clearly isn't supported and yet they still define the GCC macro <code>__SIZEOF_INT128__</code> </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 08 Dec 2015 08:59:24 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11833#comment:3 https://svn.boost.org/trac10/ticket/11833#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/config/commit/05d55111e487002ac772d87931890265262eedc9"><span class="icon">​</span>https://github.com/boostorg/config/commit/05d55111e487002ac772d87931890265262eedc9</a> </p> Ticket