Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] python 3 with boost 1.44, without using bjam
From: dhruva (dhruvakm_at_[hidden])
Date: 2010-09-09 00:06:58


Hello,

On Thu, Sep 9, 2010 at 12:32 AM, Geoff Hilton
<geoff.hilton_at_[hidden]> wrote:
> but for now I've reverted to regular msvc projects, I was able to compile
> boost.python initially with bjam when I updated to Boost 1.44, the result
> generated the following files of relevance:
> libboost_python3-vc90-mt-1_44.lib
> libboost_python3-vc90-mt.lib
> libboost_python3-vc90-mt-sgd-1_44.lib
> libboost_python3-vc90-mt-sgd.lib
>
> which is great.. but when I try to compile my project it looks for
> libboost_python-vc90-mt-1_44.lib or libboost_python-vc90-mt-gd-1_44.lib as
> appropriate. How can I make msvc compile it successfully? I know bjam is a
> compiler driver, so I imagine there's a way...

I had a similar issue and hence decided to disable to auto linking
feature in boost on Windows. It use the "#pragma" to tell the linker
to link with the appropriate library when you include headers that
require libraries. If it is not too much of an inconvenience, you
might want to take this route.

To do so:
Just define BOOST_ALL_NO_LIB at workspace/solution level and add the
required libraries in the respective project settings.

-dhruva


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net