[C++-sig] Embedding Python with Boost

Ron Brown, Jr. rbrown at gamry.com
Mon Apr 9 19:28:25 CEST 2007


David Abrahams wrote:
> If the embedding.cpp example links and runs, just invoke bjam with -n
> -a and look at the commands it is using to make things work.  If you
> can reproduce those commands there's no reason it shouldn't work for
> you.

That's exactly what I ended up doing, and that's an extremely helpful 
bit of information.  Thanks!

David Abrahams wrote:
 > At least one problem is that you're linking with an import library for
 > boost.python but adding the
 > #defines for a static lib, which would be named libboost_python.lib.

Yes, once I realized that, it all came together.  There was a tutorial 
linked elsewhere in this thread that originally threw me off a bit.

Thanks for all the advice, everyone!

-Ron




More information about the Cplusplus-sig mailing list