Boost C++ Libraries: Ticket #11896: compiler error in boost/detail/winapi/crypt.hpp https://svn.boost.org/trac10/ticket/11896 <p> compiler error in boost/detail/winapi/crypt.hpp in very special case using VS2012 (cl 11.0) for x64 build targeting Windows 2000 </p> <ul><li>- - </li></ul><p> #define _WIN32_WINNT 0x0500 </p> <p> #include &lt;windows.h&gt; </p> <p> #include &lt;boost/uuid/uuid.hpp&gt; </p> <p> #include &lt;boost/uuid/uuid_generators.hpp&gt; </p> <ul><li>- - </li></ul><p> Results in: </p> <p> Microsoft (R) C/C++-Optimierungscompiler Version 17.00.61030 for x64 </p> <p> ...boost_1_60/boost/detail/winapi/crypt.hpp(102) : error C2733: '<a class="missing wiki">CryptReleaseContext</a>' : error C2733 second C linkage of overloaded function not allowed </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.0\include\um\wincrypt.h(1128): See declaration of '<a class="missing wiki">CryptReleaseContext</a>' </p> </blockquote> <p> ...boost_1_60/boost/uuid/seed_rng.hpp(115) : error C2668: '<a class="missing wiki">CryptReleaseContext</a>': ambiguous call to overloaded function </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.0\include\um\wincrypt.h(1128): could be 'BOOL <a class="missing wiki">CryptReleaseContext</a>(HCRYPTPROV,ULONG_PTR)' ...boost_1_60/boost/detail/winapi/crypt.hpp(102): or "boost::detail::winapi::BOOL_ <a class="missing wiki">CryptReleaseContext</a>(boost::detail::winapi::HCRYPTPROV_,boost::detail::winapi::DWORD_)" </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11896 Trac 1.4.3 gjasny@… Mon, 16 Jan 2017 08:02:28 GMT <link>https://svn.boost.org/trac10/ticket/11896#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11896#comment:1</guid> <description> <p> Filed <a class="ext-link" href="https://github.com/boostorg/winapi/pull/37"><span class="icon">​</span>winapi PR#37</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Mon, 16 Jan 2017 21:41:26 GMT</pubDate> <title>status, component changed; resolution set https://svn.boost.org/trac10/ticket/11896#comment:2 https://svn.boost.org/trac10/ticket/11896#comment:2 <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> <li><strong>component</strong> <span class="trac-field-old">uuid</span> → <span class="trac-field-new">winapi</span> </li> </ul> <p> Should be fixed in <a class="ext-link" href="https://github.com/boostorg/winapi/commit/d1ce3b2d3ff45f2958c43d0a8d4296995aca053d"><span class="icon">​</span>https://github.com/boostorg/winapi/commit/d1ce3b2d3ff45f2958c43d0a8d4296995aca053d</a>. </p> Ticket