Boost logo

Boost :

From: Chris Smith (smitty_one_each_at_[hidden])
Date: 2004-01-13 13:33:35


David Abrahams wrote:

> "John Maddock" <john_at_[hidden]> writes:
>
>
>>>I've been striving to understand bjam v1/v2 with respect to Boost.Regex
>>>and Boost.Python. bjam is clearly the Way Ahead, so I want to grasp it
>>>fully.
[snip]
> Actually the preferred form is to use project ids and not depend on
> variables such as BOOST_ROOT:
>
> <lib>@boost/libs/regex/build/boost_regex
>
> or
>
> <dll>@boost/libs/regex/build/boost_regex
>
> because it will work in a cross-project context.
>

No joy:

#<example jamfile>
extension query_py
: # sources
    query_py.cpp
   <lib>@boost/libs/regex/build/boost_regex
   # requirements and dependencies for Boost.Python extensions
   <template>@boost/libs/python/build/extension
   ;
#</example jamfile>

With the invocation

c:\boost\libs\python\example>bjam -sTOOLS=VC7.1

I get
[snip]
LINK : fatal error LNK1104: cannot open file
'libboost_regex-vc71-mt-gd-1_31.lib'
------------------^^

If I copy
C:\boost\bin\boost\libs\regex\build\libboost_regex.lib\VC7.1\debug\threading-multi\libboost_regex-VC7.1-mt-gd-1_31.lib
to
c:\boost\libs\python\example\ , and change it to
libboost_regex-vc71-mt-gd-1_31.lib, query_py.pyd compiles just fine, and
works when invoked from Python, too!
Would I had the skill to figure out the disconnect. Perhaps someday. ;)
Thanks,
Chris


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