Boost C++ Libraries: Ticket #1470: Boost.Thread: Compilation errors with non-__cdecl calling convention https://svn.boost.org/trac10/ticket/1470 <p> Hi, </p> <p> On Win32, Boost.Thread currently (<a class="changeset" href="https://svn.boost.org/trac10/changeset/41287" title="Fix search for Boost.Build so that it only finds the approved version.">r41287</a>) doesn't compile when the compiler's default calling convention is not <code>__cdecl</code> (e.g. with option /Gz under MSVC, which defaults functions to <code>__stdcall</code> if no other calling convention is specified). </p> <p> This is because some function pointers are (correctly) explicitely declared <code>__cdecl</code>, but are then assigned with the addresses of functions with no explicit calling convention specified -- which is incorrect. Those functions should be explicitely <code>__cdecl</code> as well. </p> <p> I suggest applying the attached patch (in <code>trunk/</code>) to fix that behavior. </p> <p> Cheers, Francois </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1470 Trac 1.4.3 Francois Barel Thu, 22 Nov 2007 17:23:16 GMT attachment set https://svn.boost.org/trac10/ticket/1470 https://svn.boost.org/trac10/ticket/1470 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">BTL-calling-conv.diff</span> </li> </ul> Ticket viboes Wed, 09 Jun 2010 20:25:27 GMT type changed https://svn.boost.org/trac10/ticket/1470#comment:1 https://svn.boost.org/trac10/ticket/1470#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Anthony Williams Thu, 10 Jun 2010 07:40:28 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1470#comment:2 https://svn.boost.org/trac10/ticket/1470#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> </ul> <p> Fixed on trunk </p> Ticket