Boost logo

Boost-Build :

Subject: [Boost-build] Boost Python Build Error
From: B Ku (lexuscrossover_at_[hidden])
Date: 2017-02-21 17:35:16

Hi Guys,

I am trying to get the Boost Python example working.

I am running Windows. I downloaded the source code for boost_1_63_0, ran
the boostrap.bat file to generate b2.exe and bjam.exe. Then I executed
b2.exe to build libboost*.lib in state/lib.

I then modified and placed the user-config.jam file in the
%HOMEDRIVE%%HOMEPATH% directory as follows:

# Configure specific msvc version (searched for in standard locations and
using msvc : 12.0 ;

# Configure specific Python version.
using python
: 3.5
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\python.exe
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\include
: C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\libs
: <toolset>msvc

Then, I modified the libs/python/example/tutorial/Jamfile as follows, so
include .h files can be found:
project tutorial
  : requirements

Finally, I copied the bjam.exe to libs/python/example, and executed
bjam.exe and got the following error:

...found 996 targets...
...updating 4 targets... tutorial\hello_ext.pyd
LINK : fatal error LNK1181: cannot open input file 'boost_python.lib'

"C:\Users\Ben\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd" >nul
/subsystem:console /out:"tutorial\hello_ext.pyd" /IMPLIB:"tut

...failed tutorial\hello_ext.pyd tutorial\hello_ext.pdb
...skipped <ptutorial>hello for lack of <ptutorial>hello_ext.pyd...
...failed updating 2 targets...
...skipped 2 targets...

Is there a way to specify where the .lib files are supposed to be?

Am I missing a step? By default, b2 generates lib files with this name
format: libboost*.lib, not boost_python.lib.

Thank you very much for your help in advance!


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at