Ugh! I have hit one of those errors where I am really clueless. I have built/installed Python (2.7.1) and I've built/installed boost (1.44.0) against that version of python. I don't see any errors in my boost build, everything goes through fine.
When I turn to do my application build that has a lot of boost dependency, where inside my C++ code, I do have a call to Py_Init(...) I am getting the following error:
Linking CXX executable ../../../myapp_exec
../../../../../config/cmake/platforms/../../../../3rdparty/2012/<pack>/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 googled around but nothin really comes across as a solution. I don't see this issue on Windows. Appreciate if anyone can share their experiences with similar issues on Linux (RHEL5), and how they overcame it. I could try building boost-1.44.0 against older versions of Python (2.6.4 or older).
Thanks in advance, for your time & interest. -T.