[C++-sig] Building boost::python on Ubuntu

Simon Pickles sipickles at hotmail.com
Mon Jan 7 17:22:38 CET 2008


So after adding the built libraries, I am stuck with this:
> -------------- Build: Debug in embeddedTest ---------------
>
> Linking console executable: bin/Debug/embeddedTest
> obj/Debug/main.o: In function `_object* 
> boost::python::incref<_object>(_object*)':
> /usr/local/boost_1_34_1/boost/python/refcount.hpp:16: undefined 
> reference to `_Py_RefTotal'
> /usr/local/boost_1_34_1/boost/python/refcount.hpp:16: undefined 
> reference to `_Py_RefTotal'
> obj/Debug/main.o: In function `~object_base':
> /usr/local/boost_1_34_1/boost/python/object_core.hpp:436: undefined 
> reference to `_Py_RefTotal'
> /usr/local/boost_1_34_1/boost/python/object_core.hpp:436: undefined 
> reference to `_Py_RefTotal'
> /usr/local/boost_1_34_1/boost/python/object_core.hpp:436: undefined 
> reference to `_Py_NegativeRefcount'
> /usr/local/boost_1_34_1/boost/python/object_core.hpp:436: undefined 
> reference to `_Py_Dealloc'
> collect2: ld returned 1 exit status
> Process terminated with status 1 (0 minutes, 0 seconds)
> 6 errors, 0 warnings

Nearly there!


Simon Pickles wrote:
> Thank you for your patience, thats got it working.
>
> Sorry for the noob question - linux is a bit of a mental leap after 15 
> years of being in bed with Mr Gates ;)
>
> Albert Strasheim wrote:
>   
>> Hello
>>
>> You need to install the Python headers. The package is calling
>> something like python-devel or python-dev (or maybe libpython-dev),
>> depending on your Linux distribution.
>>
>> You might also consider installing the Boost packages, if the version
>> you want is available in your distribution.
>>
>> Cheers,
>>
>> Albert
>>
>> On Jan 7, 2008 3:29 PM, Simon Pickles <sipickles at hotmail.com> wrote:
>>   
>>     
>>> Hi,
>>>
>>> I obviously have not got my system, Ubuntu gutsy, set up yet, since I
>>> can't seem to build the boost::python libs. I am quite new to Linux
>>> after escaping from Windows
>>>     
>>>       
>> _______________________________________________
>> C++-sig mailing list
>> C++-sig at python.org
>> http://mail.python.org/mailman/listinfo/c++-sig
>>
>>
>>   
>>     
>
>   

-- 
Linux Counter: User# 424693 






More information about the Cplusplus-sig mailing list