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

Mike Rovner mike at bindkey.com
Thu Jan 23 20:08:46 CET 2003


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?

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
  ;

# 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):
----------------------------------------------------------------------------
------
# Boost.Build top level Jamrules

# See tools/build/index.html for documentation.

# Set some important global variables if they haven't already been set by
the
# user on the command-line or in the environment

# Establish this as the root of the boost installation. Most targets will
want
# $(BOOST_ROOT) in their #include path.  $(gTOP) is the name of the variable
# containing the path from the invocation directory to the project root.
path-global BOOST_ROOT : $($(gTOP)) ;

# The current version of Boost.
BOOST_VERSION ?= 1.30.0 ;

Thank in advance,
Mike







More information about the Cplusplus-sig mailing list