jhasse
jhasse

Reputation: 2601

Boost.Python tries to link against python27.lib using Visual C++

I'm trying to build boost python using Python 3.2. I'm linking against python32.lib and libboost_python3-vc110-mt-gd-1_52.lib. I also definied BOOST_ALL_NO_LIB to disable boost's auto link feature.

Still I'm getting the following error:

fatal error LNK1104: cannot open file 'python27.lib'

How to tell boost to use Python 3.2?

Upvotes: 0

Views: 1667

Answers (1)

Jonatan
Jonatan

Reputation: 3992

Do you have multiple Python installations on your computer?

You probably have to create a user-config.jam file with content like this:

using python : 3.2 : C:\Path\To\Python\python.exe ;

See: http://www.boost.org/doc/libs/1_53_0/libs/python/doc/building.html#configuring-boost-build

Upvotes: 2

Related Questions