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();
    }
    
    BOOST_PYTHON_MODULE(ogwa_acc)
    {
        python::def("func", func);
    }
    

Anmelden zum Antworten