Boost C++ Libraries: Ticket #5877: Ambiguous call building Boost.Python quickstart example https://svn.boost.org/trac10/ticket/5877 <p> If I use .\b2 to do a build of plain vanilla Boost 1.47 on 32-bit Windows 7 using Python 3.2 and MSVC 10.0 SP1, it completes without error. I then add the lib= and include= environment variables as instructed at the end of the build, and CD to the python quickstart example. </p> <p> When I then use b2 to build the quickstart example, it fails with: </p> <pre class="wiki">embedding.cpp embedding.cpp(39) : error C2668: 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::basic_st ring' : ambiguous call to overloaded function with [ _Elem=char, _Traits=std::char_traits&lt;char&gt;, _Ax=std::allocator&lt;char&gt; ] c:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\xstring(700): c ould be 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::basic_string(std::basic_string&lt;_E lem,_Traits,_Ax&gt; &amp;&amp;)' with [ _Elem=char, _Traits=std::char_traits&lt;char&gt;, _Ax=std::allocator&lt;char&gt; ] c:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\xstring(590): o r 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::basic_string(const _Elem *)' with [ _Elem=char, _Traits=std::char_traits&lt;char&gt;, _Ax=std::allocator&lt;char&gt; ] while trying to match the argument list '(boost::python::detail::method_ result)' </pre><p> and </p> <pre class="wiki">embedding.cpp(56) : error C2065: 'initembedded_hello' : undeclared identifier </pre><p> Of course, the second error may be caused by the first. </p> <p> See <a class="ext-link" href="http://mail.python.org/pipermail/cplusplus-sig/2011-September/016147.html"><span class="icon">​</span>http://mail.python.org/pipermail/cplusplus-sig/2011-September/016147.html</a> for a more complete history and console listing. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5877 Trac 1.4.3 anonymous Thu, 08 Sep 2011 13:16:44 GMT component changed; owner set https://svn.boost.org/trac10/ticket/5877#comment:1 https://svn.boost.org/trac10/ticket/5877#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ralf W. Grosse-Kunstleve</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Python</span> </li> </ul> Ticket anonymous Thu, 08 Sep 2011 13:56:00 GMT <link>https://svn.boost.org/trac10/ticket/5877#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5877#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5877#comment:1" title="Comment 1">anonymous</a>: Sorry, I see this was assigned somehow to rwgk. Either I did this accidentally when changing the component (which is what it seems to be saying above); or someone / something else changed this because he is the right person to look at the ticket. </p> <p> I'm afraid I can't tell which and I can't see how to set the owner back to "unassigned". :-( </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Thu, 08 Sep 2011 20:22:12 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/5877#comment:3 https://svn.boost.org/trac10/ticket/5877#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Ralf W. Grosse-Kunstleve</span> to <span class="trac-author">Stefan Seefeld</span> </li> </ul> <p> Stefan, can you help with this? </p> Ticket anonymous Fri, 07 Dec 2012 21:12:42 GMT <link>https://svn.boost.org/trac10/ticket/5877#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5877#comment:4</guid> <description> <p> Seconded; I get a similar error; win7, msvs10, 64bit. </p> <p> 'Tutorial' runs fine, but 'quickstart' gives the 'embedding.cpp(39) : error C2668' nonsense. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Stefan Seefeld</dc:creator> <pubDate>Fri, 07 Dec 2012 22:37:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5877#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5877#comment:5</guid> <description> <p> I see the issue has been assigned to me. I'm unfortunately not sure I can help, as I'm not using Windows, and even less MSVC. However, I notice that just above the failing line is a conditional line of code to work around a MSVC bug, and it appears that could easily be extended to include the compiler version it now fails with. </p> <p> Unfortunately, I don't know how to widen the conditional expression to include the still failing compilers, so I'd rather not touch that code. This should be pretty obvious to fix for anyone with the appropriate Windows compiler at hand. </p> </description> <category>Ticket</category> </item> </channel> </rss>