[C++-sig] "unknown dependent target" error

David Abrahams dave at boost-consulting.com
Thu Jan 23 20:44:45 CET 2003


"Mike Rovner" <mike at bindkey.com> writes:

> Hi,
>
> I'm trying to build python extension outside boost tree with MSVC7.
>
> Command line:
> bjam -s"TOOLS=vc7" -n -a
>
> gives me an error:
> unknown dependent target <s:!boost!libs!python!build>boost_python.dll
>
> boost_python.dll is there in s:/boost/libs/python/build.
>
> What is my problem?

You didn't follow the instructions at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/python/doc/building.html#outside,
in particular the part about starting with the archive at
http://www.boost.org/libs/python/example/project.zip

> I have following config files:
>>>> boost-build.jam file:
> ----------------------------------------------------------------------------
> ------
> boost-build s:/boost/tools/build ;
>
>>>> Jamfile file:
> ----------------------------------------------------------------------------
> ------
> project-root ;
>
> # Include definitions needed for Python modules
> SEARCH on python.jam = $(BOOST_BUILD_PATH) ;
>
> include python.jam ;
>
> # Declare a Python extension
> extension ext
> :  # sources
>    ext.cpp
>    # dependencies
>    <dll>s:/boost/libs/python/build/boost_python

You can't refer to it that way.  Instead you have to put it in the
requirements section with <library-path> and <find-library>.

>   ;
>
> # Declare a test for the extension module
> boost-python-runtest test_ext
>     :  # Python test driver
>     t_ext.py
>     # extension modules to use
>     <pyd>ext ;
>
>>>> Jamrules file (copied from boost root, otherwise bjam complains):

Not a very good idea; if you want to silence the warning just use an
empty Jambase.

HTH,
-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list