Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-10-29 14:22:02


on Sat Oct 20 2007, Shawn Cook <sfncook-AT-hotmail.com> wrote:

> I just need a sanity check: I would like to embed a Python interpreter in my C++ application. I
> am following all the instructions as accurately as I can (http://www.boost.org/more/
> getting_started/windows.html). When I build the Python library binary (as mentioned in the
> Boost.Python installation instructions) I do not get any errors. If necessary I can respond
> with my Boost.Build output - but it's rather lengthy. Anyway, this paragraph in the
> Boost.Python Embedding tutorial says I'm looking for a library file named
> "boost_python_debug.lib" which does not exist. Here is the paragraph in question:

The embedding tutorial is, unfortunately, outdated... and I don't
think it has a maintainer at the moment.

> ' Boost.Python's library comes in two variants. Both are located in Boost's /libs/python/build/
> bin-stage subdirectory. On Windows, the variants are called boost_python.lib (for release
> builds) and boost_python_debug.lib (for debugging). If you can't find the libraries, you
> probably haven't built Boost.Python yet. See Building and Testing on how to do this.'
>
> (from: http://www.boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html)
>
> But I'm not getting any build errors, in fact I'm building all the different MSVC runtime
> variants (debug, release, static, dynamic, etc) and they all appear to be built - but they are
> named different than "boost_python.lib" and are not in the /libs/python/build/bin-stage
> directory. Is this paragraph just deprecated and needing some revisiting by the faithful Boost
> Technical Writers?

I think that's the right analysis. Sorry for the inconvenience.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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