Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-09 07:34:54

----- Original Message -----
From: "Steve Anichini" <sanichin_at_[hidden]>

> ah, thank you.
> but now I get a build error:
n\bin\jam -sBOOST_ROOT=. -sTOOLS="msvc-stlport" -sSTLPORT_4.5_PATH=f:\develo
> p\projects\external\stlport-4.5 -sBUILD="<runtime-link>static"
> Error: <libs!python!build>libboost_python: target requirements conflict
> requ
> ested build { <runtime-link>dynamic <target-type>LIB
<runtime-link>static }
> if i substitute -sBUILD="<runtime-link>dynamic" it works.

That's because linking to the runtime library dynamically is in the target
requirements for libboost_python (see the declaration of PYTHON_PROPERTIES
at the top of the libs/python/build/Jamfile. I'm fairly sure that it
wouldn't work if you changed that. Even if I'm wrong, every python module
would be much larger due to the statically linked runtime library.

If you really want to try this, replace the last line of the libboost_python

lib libboost_python : ../src/$(CPP_SOURCES).cpp
    # requirements
    $(PYTHON_PROPERTIES) ; # <=== this line

with the following:

        <gcc><*><define>USE_DL_IMPORT ;

let me know if it works out for you,


Boost list run by bdawes at, gregod at, cpdaniel at, john at