Boost C++ Libraries: Ticket #6841: Are __cdecl and __stdcall ambiguous in CE? https://svn.boost.org/trac10/ticket/6841 <p> It seems that <span class="underline">cdecl and </span>stdcall are the same in this platform. </p> <pre class="wiki">Test output: VeecoFTC - thread - container__thread_vector_p_lib / msvc-9.0~wm5~stlport5.2 Rev 78187 / Wed, 25 Apr 2012 04:24:15 +0000 Report Time: Fri, 27 Apr 2012 20:28:57 +0000 Compile [2012-04-26 12:54:33 UTC]: fail call "%BOOST_ROOT%/TestTools/VSVars32-VC9-WM5.bat" x86 &gt;nul cl /Zm800 -nologo @"D:\BoostRT\results\boost\bin.v2\libs\thread\test\container__thread_vector_p_lib.test\msvc-9.0~wm5~stlport5.2\debug\stdlib-stlport-5.2~evc9~arm\threads\container\thread_vector_pass.obj.rsp" thread_vector_pass.cpp C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(384) : warning C4201: nonstandard extension used : nameless struct/union C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(403) : warning C4201: nonstandard extension used : nameless struct/union C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(6041) : warning C4201: nonstandard extension used : nameless struct/union C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(6050) : warning C4201: nonstandard extension used : nameless struct/union C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winbase.h(1139) : warning C4201: nonstandard extension used : nameless struct/union D:\BoostRT\boost\boost/thread/win32/thread_primitives.hpp(389) : warning C4127: conditional expression is constant D:\BoostRT\boost\boost/thread/win32/thread_primitives.hpp(406) : warning C4127: conditional expression is constant D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(165) : error C2953: 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(void)&gt;' : class template has already been defined D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(157) : see declaration of 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(void)&gt;' D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(197) : error C2953: 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(T0)&gt;' : class template has already been defined D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(189) : see declaration of 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(T0)&gt;' D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(229) : error C2953: 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(T0,T1)&gt;' : class template has already been defined D:\BoostRT\boost\boost/intrusive/detail/mpl.hpp(221) : see declaration of 'boost::intrusive::detail::is_unary_or_binary_function_impl&lt;R(__cdecl *)(T0,T1)&gt;' </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6841 Trac 1.4.3 Ulrich Eckhardt <ulrich.eckhardt@…> Wed, 02 May 2012 13:28:40 GMT keywords set https://svn.boost.org/trac10/ticket/6841#comment:1 https://svn.boost.org/trac10/ticket/6841#comment:1 <ul> <li><strong>keywords</strong> wince added </li> </ul> <p> If you peek around the Windows CE headers, you will find that one is #defined to the other. I remember that you can use those before the according headers are included, which can mess things up if you have code like this (from the top of my head, not actually compiled): </p> <pre class="wiki"> int __cdecl foo(); #include &lt;windows.h&gt; int __cdecl foo() { return 42; } </pre><p> BTW: I see that you are currently trying to take care of the CE port. If you add the "wince" keyword, all those tickets are easier to find. I also need a CE port, but I'm currently swamped with other work, so at best I can watch what's going on and try to help out. </p> Ticket David Deakins Thu, 10 May 2012 03:45:10 GMT <link>https://svn.boost.org/trac10/ticket/6841#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6841#comment:2</guid> <description> <p> I actually had a little bit of time to look at this and built the attached simple patch for mpl.hpp. After applying it, nearly all of the intrusive tests seem pass without issue on WinCE. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>David Deakins</dc:creator> <pubDate>Thu, 10 May 2012 03:46:23 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/6841 https://svn.boost.org/trac10/ticket/6841 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-intrusive-mpl.hpp.patch</span> </li> </ul> <p> patch to adjust mpl.hpp </p> Ticket Ion Gaztañaga Thu, 12 Jul 2012 07:31:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6841#comment:3 https://svn.boost.org/trac10/ticket/6841#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 at revision 78474 in trunk </p> Ticket