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:
>
F:\develop\projects\external\boost_1_25_1>f:\develop\projects\buildtools\mai
>
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
for
> 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
requirements:

lib libboost_python : ../src/$(CPP_SOURCES).cpp
    # requirements
    : $(BOOST_PYTHON_INCLUDES)
    <shared-linkable>true
    $(PYTHON_PROPERTIES) ; # <=== this line

with the following:

        <gcc><*><define>SIZEOF_LONG=4
        <gcc><*><define>USE_DL_IMPORT ;

let me know if it works out for you,

Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk