From: Beverly Pope (countryone77_at_[hidden])
Date: 2008-07-03 16:06:40


  Hi,
  I am a complete newbie at boost, who must compile several Boost 1.33.1 Libraries on 64-bit MS Windows Vista, using MS VS2005.   I downloaded the 64-bit version of Python (python-2.5.2.amd64.msi) as well as bjam (boost-jam-3.1.16-1-ntx86.zip) and Boost 1.33.1 (boost_1_33_1.zip); I then installed Python and extracted the other two files, placing bjam in the PATH.
   
  I tried various things to build the libraries.  I finally got some (not all) of them to build by setting MSVCDir, which makes the builds bypass running msvcvars32.bat.  I am currently using the following to do the build (I've also tried --toolset=msvc, but that does not do any better):
 
bjam ^
        -sTools=8_0-amd64 ^
        --prefix=%myBoostDir%\newboost ^
        --builddir=%myBoostDir%\newboost ^
        --debug-configuration ^
        --with-python-root=%myPythonDir% ^
        --with-python-version=2.5 ^
        --with-pydebug ^
        stage ^
        > %myBoostDir%\logfile.txt 2>&1
 
1) I see numerous (21360) warnings like the following -- I don't know whether that is something that can be ignored?
 D:\work\intersect\boost_1_33_1\boost/config/abi_prefix.hpp(19) : warning C4103: 'd:\work\intersect\boost_1_33_1\boost\config\abi_prefix.hpp'
 : alignment changed after including header, may be due to missing #pragma pack(pop)

2) When building the libraries, I get the following errors when it tries to build object_protocol.cpp (three times) :
vc-C++ d:\work\intersect\boost_1_33_1\newboost\bin\boost\libs\python\build\boost_python.dll\vc-7_1\debug\threading-multi\object_protocol.obj
cl : Command line warning D9002 : ignoring unknown option '/Op'
object_protocol.cpp
D:\work\intersect\boost_1_33_1\libs\python\build\../src/object_protocol.cpp(110) : error C2664: '_PyEval_SliceIndex' : cannot convert parame
ter 2 from 'int *' to 'Py_ssize_t *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\work\intersect\boost_1_33_1\libs\python\build\../src/object_protocol.cpp(112) : error C2664: '_PyEval_SliceIndex' : cannot convert parame
ter 2 from 'int *' to 'Py_ssize_t *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\work\intersect\boost_1_33_1\libs\python\build\../src/object_protocol.cpp(137) : error C2664: '_PyEval_SliceIndex' : cannot convert parame
ter 2 from 'int *' to 'Py_ssize_t *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
D:\work\intersect\boost_1_33_1\libs\python\build\../src/object_protocol.cpp(139) : error C2664: '_PyEval_SliceIndex' : cannot convert parame
ter 2 from 'int *' to 'Py_ssize_t *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 
Do I just need to change the cast or is something else going on?
 
Thanks for your time.   
 
Bev