Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-12-23 00:43:07


ozan wrote:
> I am trying to build the example python code with boost by following the
> instructions on
> http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html
> but when I command "bjam -sTOOLS=msvc" on my command line (on WINDOWS XP) I am getting some error and messages like followings and I cannot get any
> boost_python.dll or hello.pyd.
>
> Thanks!
>
> ....found 1448 targets...
> ....updating 10 targets...
> vc-C++
> ...\..\..\..\bin\boost\libs\python\build\boost_python.dll\msvc\debug\threadin
> g-multi\from_python.obj
> from_python.cpp
>
> D:\PROGRA~1\MICROS~3\VC98\INCLUDE\vector(420) : error C2664: '__thiscall
> std::vector<unsigned int,class std::allocator<unsigned int>
>>::std::vector<unsigned int,class std::allocator<unsigned int> >(unsigned
> int,const unsigned int &,const class std::allocator<unsigned int> &)' :
> cannot convert parameter 1 from 'const class std::allocator<unsigned int>'
> to 'unsigned int'

I'm at a loss to explain this. Unless you haven't installed all of the
VC6 service packs or have an outdated version of Boost, or something on
your system has been modified unintentionally, there's no mention of
std::vector<unsigned int> in that entire translation unit (I
preprocessed it and looked at the output). Of course, vc6 is so buggy,
that sort of niggling detail never stopped it from barfing before ;-)

All I can say is that it works here for me. Sorry, otherwise I have no
clue.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net