[C++-sig] Embedding Python with Boost

Ron Brown, Jr. rbrown at gamry.com
Wed Apr 4 15:25:21 CEST 2007


Thanks Nick, that was extremely helpful!


Nick Lee wrote:
> I'm pretty sure boost_python.lib is a dynamic-link library. The static-link 
> library is named libboost_python.lib (or libboost_python_debug.lib, which is 
> the debug version).
> 
> Unfortunately, the default installation of Boost does not create the 
> static-link library. You have to manually build it yourself from the source 
> code, which is located in the \libs\python\build directory of your Boost 
> installation. Run Boost.Jam in that directory and it will create the 
> static-link libraries. (The relevent documentation can be found at 
> http://www.boost.org/libs/python/doc/building.html -- see the section called 
> "Building Boost.Python")
> 
> I found the following page helpful for embedding Boost.Python too:
> 
> http://members.gamedev.net/sicrane/articles/EmbeddingPythonPart1.html
> 
> I found it much clearer than the documentation that comes packaged with 
> Boost.
> 
> Hope this helps.
> 
> "Ron Brown, Jr." <rbrown at gamry.com> wrote in message 
> news:euru7s$sih$1 at sea.gmane.org...
>> Am I barking up the wrong tree by trying to statically link those libs? 




More information about the Cplusplus-sig mailing list