Whilst trying to install Boost Python on Visual Studio I have been getting few results. I was able to create the Boost.Python library and the boost_python...lib file has also been created which took me long to figure out how to achieve this.
However, now in visual studio, after adding the include and library path to the linker, I was not able to get a small test program to work.
When trying to run the following line of code:
Py_Initialize();
using namespace boost::python;
object main_module((handle<>(borrowed(PyImport_AddModule("__main__")))));
I am getting the following error
The program could not start because boost_python-vc141-1_65.dll is missing....
When I look in the boost folder just where the libraries are (in the stage folder) I can clearly see this file and I have linked the program against this folder.
I have tried various different Boost versions.
The latest stable build so 1.64 has the same problem as the beta 1.65. With a previous build, 1.61, I couldn't even get the Boost.Python to build.
I also tried different Python versions, 3.6 and now 2.7. I have uninstalled all other versions of Python so that the 2.7 version is the only one. I also made sure that the PYTHONHOME and PYTHONPATH are set in the system variables. ? Am i missing something important to get this Boost Python library to work? If any other information are needed please ask and I will add it, but since i'm unfamiliar with boost and linking in general i'm not sure what information is relevant.