c++ - boost python dll load failed when wrapping a library function -
i trying use boost.python wrap exisiting c++ code. want make seperate project. hence wrap function library call follows.
#include < iostream > #include "stdafx.h" #include < boost/python/module.hpp > #include < boost/python/def.hpp > #include "mylib/header1.hpp" #include<string> #include<vector> #include "umf/header2.hpp" #include "umf/header3.hpp" using namespace std; using namespace boost::python; using namespace my_ns; void init(const char* name) { cout << "hiiii " << name << "\n"; my_ns::initialize(); } boost_python_module(libname) { def("init", init); }
when remove line my_ns::initialize(), wrapping works. if include get
importerror: dll load failed: specified module not found.
what doing wrong here?
Comments
Post a Comment