boost.numpy functions are throwing unresolved extern symbol link errors

  • I'm using normal Boost.NumPy functions in C++ like ndarray::get_data(), and I get a "reference to unresolved external symbol" error. The .lib is linked normally and I have no approach on how to solve the error.

    I am using Boost 1.74.

    Here is a Code example:

    #include <boost/python/numpy.hpp>
    using namespace boost;
    void func(python::object _obj)
        python::numpy::ndarray my_ndarray = python::extract<boost::python::numpy::ndarray>(_obj.attr("Member_01"));
    	char* data = my_ndarray.get_data();
        python::def("func", func);

Log in to reply