Boost logo

Boost Users :

Subject: [Boost-users] Boost 1.44.0 with Python 2.7.1
From: Sunil Thomas (sgthomas27_at_[hidden])
Date: 2012-08-23 22:04:22


Hi!

  I've built and installed successfull Python 2.7.1 that I've separately
tested for an application with a boost-1.45.0 build that I also installed
successfully. But for another application, I needed to build and install
boost-1.44.0 and here I also I've been able to build/install boost
successfully using the documentation (bootstrap/bjam after specifying
prefix and with-python arguments). But when I build the (C++) application
which invokes *Py_Init(...)*, I am getting the following error:

*Linking CXX executable ../../../myapp_exec
../../../../../config/cmake/platforms/../../../../3rdparty/2012/package/rh5_x86_64_gcc-4.1.2/boost-1.44.0/lib/libboost_python-gcc41-1_44.so:
undefined reference to `Py_InitModule4'
collect2: ld returned 1 exit status
gmake[2]: *** [myapp_exec] Error 1
*

   I am completely stuck here and would greatly appreciate any ideas to
help understand and try to resolve this. I can easily do another
boost-1.44.0 build with an older version of python to see if that helps.
Thanks in advance for your time and please let me know if you have any
questions.

Thanks,
-Sunil.



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