Boost logo

Boost Users :

Subject: [Boost-users] Boost.Python can't link using downloaded pre-compiled binaries
From: Heng Zhou (hzhou3_at_[hidden])
Date: 2017-05-25 03:01:56

Following are the environment:
- Windows 7 Enterprise SP1 64 bit
- Python 2.7.13
- Visual Studio 2015 (v14.0)

Following are the steps to the problem:

(1) I downloaded boost_1_64_0-msvc-14.0-64.exe from . Since
it is pre-compiled binary, I think there is no need to build Boost.Python
manually. Note that it is for 64 bit build in VS2015 if I understand

(2) Install the pre-compiled binary to C:\local\boost_1_64_0

(3) Follow the Boost.Python's QuickStart here: .
The source code are the same as shown therein.

(4) Set in VS2015 Property Pages->C/C++->Additional Include Directories:
Set in VS2015 Property Pages->Linker->Additional Library Directories:
Set in VS2015 Property Pages->Linker->Input->Additional Dependencies:
Set in VS2015 Property Pages->General->Configuration Type: Dynamic Library

(5) Build under x64 configuration and got errors:
1>Source.obj : error LNK2001: unresolved external symbol __imp_PyString_Type
1>Source.obj : error LNK2001: unresolved external symbol
1>C:\...\ConsoleApplication1\x64\Release\ConsoleApplication1.dll : fatal
error LNK1120: 2 unresolved externals

I have no idea what the matter is. I will greatly appreciate it if you can
help me out.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at