Boost C++ Libraries: Ticket #8485: Compile error, same as #5431, but Windows Vista (64 bit) https://svn.boost.org/trac10/ticket/8485 <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/5431"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/5431</a> </p> <pre class="wiki">#ifdef _MSC_VER /* This is Microsoft Visual C compiler specific */ #endif //_MSC_VER </pre><p> Same problem with 1.51.0 and 1.53.0 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8485 Trac 1.4.3 viboes Wed, 24 Apr 2013 16:51:41 GMT owner, status changed https://svn.boost.org/trac10/ticket/8485#comment:1 https://svn.boost.org/trac10/ticket/8485#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I'm not sure using <code>__MSV_VER</code> would work. Note that it is working without this flag correctly on WINNT. </p> Ticket Martin.problemboost.Maurer@… Thu, 25 Apr 2013 06:02:38 GMT <link>https://svn.boost.org/trac10/ticket/8485#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8485#comment:2</guid> <description> <p> Here the needed file to reproduce the error: </p> <p> testmain.cpp </p> <p> #include &lt;intrin.h&gt; </p> <p> #include &lt;boost/lexical_cast.hpp&gt; #include &lt;boost/program_options.hpp&gt; </p> <p> int main(int argc, char<strong> argv) { </strong></p> <blockquote> <p> printf("Hello\n"); </p> </blockquote> <p> } </p> <p> I am compiling with VS2008 and 64 Bit C compiler with the following command line: </p> <p> cl /openmp /favor:INTEL64 /O2 /Fetest.exe /F2097152 /TP /EHsc -I. -Id:\boost_1_53_0 testmain.cpp /link /LIBPATH:d:\boost_1_53_0\lib\x64\lib </p> <p> This produces the following errors: </p> <p> Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64 Copyright (C) Microsoft Corporation. All rights reserved. </p> <p> testmain.cpp C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(996) : error C2733: second C linkage of overloaded funct ion '_InterlockedCompareExchange_np' not allowed </p> <blockquote> <p> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(995) : see declaration of '_InterlockedCompareEx </p> </blockquote> <p> change_np' d:\boost_1_53_0\boost/detail/interlocked.hpp(104) : error C2733: second C linkage of overloaded function '_InterlockedCompare ExchangePointer_np' not allowed </p> <blockquote> <p> d:\boost_1_53_0\boost/detail/interlocked.hpp(104) : see declaration of '_InterlockedCompareExchangePointer_np' </p> </blockquote> <p> When i remove the include for intrin.h it compiles and runs without problems. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 21 May 2013 23:04:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8485#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8485#comment:3</guid> <description> <p> Do you have a patch? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 21 May 2013 23:04:50 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/8485#comment:4 https://svn.boost.org/trac10/ticket/8485#comment:4 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/8485?action=diff&amp;version=4">diff</a>) </li> </ul> Ticket viboes Tue, 04 Jun 2013 06:18:29 GMT milestone changed https://svn.boost.org/trac10/ticket/8485#comment:5 https://svn.boost.org/trac10/ticket/8485#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> Ticket viboes Sat, 08 Jun 2013 14:22:09 GMT milestone changed https://svn.boost.org/trac10/ticket/8485#comment:6 https://svn.boost.org/trac10/ticket/8485#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.54.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> I don't reach to reproduce it with msvc 10. Do you have a patch I can test? </p> Ticket viboes Tue, 10 Sep 2013 19:47:39 GMT component changed https://svn.boost.org/trac10/ticket/8485#comment:7 https://svn.boost.org/trac10/ticket/8485#comment:7 <ul> <li><strong>component</strong> <span class="trac-field-old">thread</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> <p> In case Peter know how to fix this. </p> Ticket viboes Tue, 10 Sep 2013 19:48:03 GMT status changed https://svn.boost.org/trac10/ticket/8485#comment:8 https://svn.boost.org/trac10/ticket/8485#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket viboes Tue, 10 Sep 2013 19:48:19 GMT owner changed https://svn.boost.org/trac10/ticket/8485#comment:9 https://svn.boost.org/trac10/ticket/8485#comment:9 <ul> <li><strong>owner</strong> changed from <span class="trac-author">viboes</span> to <span class="trac-author">Peter Dimov</span> </li> </ul> Ticket Peter Dimov Sun, 29 Sep 2013 11:14:52 GMT <link>https://svn.boost.org/trac10/ticket/8485#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8485#comment:10</guid> <description> <p> This is, I believe, the case in which </p> <pre class="wiki">#include &lt;intrin.h&gt; #include &lt;utility&gt; int main() {} </pre><p> fails. This was a problem with VC++ 8.0 but was supposed to be fixed in 9.0. There's not much we can do about this incompatibility, as it's outside our control. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 02 Oct 2013 10:25:43 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/8485#comment:11 https://svn.boost.org/trac10/ticket/8485#comment:11 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Peter Dimov</span> to <span class="trac-author">Jürgen Hunold</span> </li> </ul> <p> Actually, this was fixed in VC++ 10.0, not in 9.0, and the code was correctly checking for &gt;= 1600 (see revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/75396" title="Use &lt;intrin.h&gt; for VS2010+. Refs #4678.">[75396]</a> and ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4678" title="#4678: Bugs: VS2010 intrin.h not compatible with interlocked.hpp (closed: fixed)">#4678</a>), but it was changed to check for 1500 in revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/80626" title="Fix: intrin.h is available in msvc-9.0 (_MSC_VER 1500)">[80626]</a>. </p> Ticket Peter Dimov Wed, 12 Feb 2014 19:01:03 GMT owner changed https://svn.boost.org/trac10/ticket/8485#comment:12 https://svn.boost.org/trac10/ticket/8485#comment:12 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jürgen Hunold</span> to <span class="trac-author">Peter Dimov</span> </li> </ul> Ticket