Boost C++ Libraries: Ticket #4873: Compile error when building against python 3.x https://svn.boost.org/trac10/ticket/4873 <p> Since version 1.44 boost python does not compile anymore using python 3.x (after a GSOC project it worked fine with python 3.1). </p> <p> I tried to build the boost 1.45 official release targeting a x64 version on Visual C++ 2010 under Windows 7 x64 using the following build line: </p> <pre class="wiki">bjam --build-dir=e:\devel\_ext\boost_out_64\out --libdir=e:\devel\_ext\boost_out_64\lib --includedir=e:\devel\_ext\boost_out_64\inc toolset=msvc-10.0 define=arch:SSE2 address-model=64 link=shared runtime-link=shared -j6 install bjam --build-dir=e:\devel\_ext\boost_out_64\out --libdir=e:\devel\_ext\boost_out_64\lib --includedir=e:\devel\_ext\boost_out_64\inc toolset=msvc-10.0 define=arch:SSE2 address-model=64 link=static runtime-link=shared -j6 install </pre><p> These are the errors generated: </p> <pre class="wiki">compile-c-c++ e:\devel\_ext\boost_out_64\out\boost\bin.v2\libs\python\build\msvc-10.0\debug\address-model-64\link-static\threading-multi\numeric.obj numeric.cpp E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C2065: 'PyInt_Type' : undeclared identifier E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(138) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C2065: 'PyInt_Type' : undeclared identifier E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C2039: 'PyInt_FromLong' : is not a member of '`global namespace'' E:\devel\boost_1_45_0\boost/python/converter/builtin_converters.hpp(144) : error C3861: 'PyInt_FromLong': identifier not found E:\devel\boost_1_45_0\boost/python/detail/caller.hpp(55) : warning C4244: 'return' : conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4873 Trac 1.4.3 Dave Abrahams Sun, 21 Nov 2010 13:46:48 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4873#comment:1 https://svn.boost.org/trac10/ticket/4873#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">Python</span> </li> </ul> Ticket Dave Abrahams Sun, 21 Nov 2010 13:47:04 GMT summary changed https://svn.boost.org/trac10/ticket/4873#comment:2 https://svn.boost.org/trac10/ticket/4873#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">[pyhon] compile error when building against python 3.x</span> → <span class="trac-field-new">Compile error when building against python 3.x</span> </li> </ul> Ticket Matthew Bradbury <matt-bradbury@…> Thu, 30 Dec 2010 12:05:48 GMT status changed; resolution set; keywords deleted https://svn.boost.org/trac10/ticket/4873#comment:3 https://svn.boost.org/trac10/ticket/4873#comment:3 <ul> <li><strong>keywords</strong> python removed </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4627" title="#4627: Bugs: Broken build boost::python on windows x64 with python3 (closed: fixed)">#4627</a>. </p> Ticket