Re: [C++-sig] Compiling boost python

2020-05-01 Thread Lewis Evans
We build boost-python using a simple setup: 1. build boost according to its own instructions 2. cmake to build our C++, using find_package for python and boost libraries we use the latest cmake, find_package with exact required components I personally found bjam tricky to use (very few examples or

[C++-sig] Passing vector as argument to python function using boost python

2020-05-01 Thread deepansh
I followed https://riptutorial.com/boost/example/25280/wrapping-std--vector-in-boost-python but how to include vector_indexing_suite for passing vector as argument? I am getting the error: No Python class registered for C++ class std::vector > when running the code: BOOST_PYTHON_MODULE(Strat) {