[C++-sig] Build Errors Making the "quickstart" Demo Project

Niall Douglas s_sourceforge at nedprod.com
Wed Sep 7 12:57:19 CEST 2011


If I am understanding you correctly, your attempts to build and/or 
use stock BPL is failing when building the quickstart demo?

If so, there is surely some issue with your build environment as 
Boost runs a series of automated regression tests which catch build 
failures.

If I'm not right in understanding you correctly, please do explain 
further.

Niall


On 6 Sep 2011 at 14:01, Paul Kroitor wrote:

> Hello all,
> 
>  
> 
> We are adding a python scripting layer on top of an existing largish C++
> app, and are hoping to use Boost.Python to accomplish this. So far, it's
> hasn't been going very smoothly, but I think we are nearly to the point
> of getting the demo program to compile.
> 
>  
> 
> For the most part, we are following the instructions here:
> 
> http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html
> 
>  
> 
> but have also had to use hints from here
> 
> http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-st
> udio-2010
> 
> and several other forums to get as far as we have (who / where should we
> report manual errors to?).
> 
>  
> 
> I don't think we are doing anything non-standard - we certainly aren't
> trying to - but perhaps some of the issues we are seeing come from using
> Python 3.2. To complete the list, we are also using MSVC 10.0 SP1 and
> Boost 1.47 on Windows 7 32-bit platform.
> 
>  
> 
> Currently, we are trying to get the "quickstart" example working and are
> stuck on an error in the build of  "embedding.cpp":
> 
>  
> 
> (note that for clarity I've rerun the build a second time so that it is
> only trying to build the failed modules)
> 
>  
> 
> ........................................................................
> ...............
> 
>  
> 
> C:\Boost\boost_1_47_0\libs\python\example\quickstart>b2
> 
> ...patience...
> 
> ...patience...
> 
> ...found 1603 targets...
> 
> ...updating 3 targets...
> 
> compile-c-c++ bin\msvc-10.0\debug\threading-multi\embedding.obj
> 
> embedding.cpp
> 
> embedding.cpp(39) : error C2668:
> 'std::basic_string<_Elem,_Traits,_Ax>::basic_st
> 
> ring' : ambiguous call to overloaded function
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         c:\Program Files\Microsoft Visual Studio
> 10.0\VC\INCLUDE\xstring(700): c
> 
> ould be
> 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_E
> 
> lem,_Traits,_Ax> &&)'
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         c:\Program Files\Microsoft Visual Studio
> 10.0\VC\INCLUDE\xstring(590): o
> 
> r       'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const _Elem
> *)'
> 
>         with
> 
>         [
> 
>             _Elem=char,
> 
>             _Traits=std::char_traits<char>,
> 
>             _Ax=std::allocator<char>
> 
>         ]
> 
>         while trying to match the argument list
> '(boost::python::detail::method_
> 
> result)'
> 
> embedding.cpp(56) : error C2065: 'initembedded_hello' : undeclared
> identifier
> 
>  
> 
>     call "c:\Program Files\Microsoft Visual Studio
> 10.0\VC\vcvarsall.bat" x86 >n
> 
> ul
> 
> cl /Zm800 -nologo
> @"bin\msvc-10.0\debug\threading-multi\embedding.obj.rsp"
> 
>  
> 
> ...failed compile-c-c++
> bin\msvc-10.0\debug\threading-multi\embedding.obj...
> 
> ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.exe for lack
> of <pbin
> 
> \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> ...skipped <pbin\msvc-10.0\debug\threading-multi>embedding.pdb for lack
> of <pbin
> 
> \msvc-10.0\debug\threading-multi>embedding.obj...
> 
> ...failed updating 1 target...
> 
> ...skipped 2 targets...
> 
>  
> 
> ........................................................................
> ...............
> 
>  
> 
> With all the templates and overloads, this is getting too technical for
> to solve here. I am hoping someone here will recognize this error or
> understand what's causing it.
> 
>  
> 
> Thanks in advance for any help or guidance anyone is able to give.
> 
> Paul Kroitor 
> 
> 


-- 
Technology & Consulting Services - ned Productions Limited.
http://www.nedproductions.biz/. VAT reg: IE 9708311Q. Company no: 
472909.





More information about the Cplusplus-sig mailing list