[C++-sig] Boost-Python Linking Problem with Hello World Example

2012-12-19 Thread Hesam
Hello, I am trying to compile and link boost-python hello world example and I have some linking problems. OS: Ubuntu g++ -fPIC -w Test2.cpp -I ../../../Libs/Python/Python-2.7.3/Include -I ../../../Libs/Python/Python-2.7.3 -I ../../../Libs/Boost/boost_1_52_0 -Wl,-rpath,../../../Libs/Python/Python

[C++-sig] Unwrapping a boost::function from boost::python::object with extract

2012-12-19 Thread Jennifer Olsen
How can I call C++ module functions from C++ but select the function from python? See example below I know I can setup a map of strings manually, and select the function I want to run, but I'd like a cleaner python solution. I would also like it to be very efficient, hopefully by basically unwrap

Re: [C++-sig] Boost-Python Linking Problem with Hello World Example

2012-12-19 Thread Anders Wallin
It's hard to get the includes/libs right by hand on the command line. Better to use a build-tool like bjam, cmake, or something. Can you try this cmake build: https://github.com/aewallin/sandbox/tree/master/boost_python_helloworld cmake . and then make if you want to see the actual command-line cm