I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++

When I include #include boost/python/numpy.hpp

The error I am getting is:

Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib:
1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib'

I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows:

  1. .\bbotstarp.bat
  2. .\b2 -j8 --toolset=msvc-14.1 --build-type=complete link=static runtime-link=static architecture=x86 address-model=32 stage --with-python

I added the include and link folders to the project. I do not use precompiled headers

Is there anything that I am missing?


1 Answers

Community On

I had the same problem. It seems like Boost python is not supported by python 3.7 vert well.

Using python 3.6 will solve this problem.