On Jan 4, 2010, at 10:50 PM, blp330 wrote:


Hi,

I try to upgrade my boost from 1.36 to 1.41, but it will link against
python26.lib.

My own python version is 2.5,

How can I tell boost to link with python25.lib?


What operating system are you on? Mac OS X?

Generally, I on Mac OSX I set up a user-config.jam file and then point to it using the bjam options:

bjam --with-python --ignore-site-config --user-config=user-config.jam toolset=darwin -d2

My 'user-config.jam' is based on the template that looks like this:

import option ;
import feature ;
if ! darwin in [ feature.values <toolset> ]
{
    using darwin ;
}
project : default-build <toolset>darwin ;
using python
     : %(num)s # version
: %(system)s/Library/Frameworks/Python.framework/Versions/% (num)s/bin/python%(num)s # cmd-or-prefix : %(system)s/Library/Frameworks/Python.framework/Versions/% (num)s/include/python%(num)s # includes : %(system)s/Library/Frameworks/Python.framework/Versions/% (num)s/lib/python%(num)s/config # a lib actually symlink
     : <toolset>darwin # condition
     ;
libraries = --with-python ;

If it turns out you are on Mac OSX I can explain those variables in the '%()s' syntax a bit more - they are not for bjam but just where you might change info depending on which python version you want to link against.

Dane
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to