[C++-sig] Re: Embedding Tutorial

William Trenker wtrenker at hotmail.com
Thu Dec 19 01:44:19 CET 2002


Dave,

I just want to say how much I appreciate your help.  I consider it a 
privilege to be able to tap into the expertise of an accomplished computer 
scientist like yourself.

Now I'm off to try and get my little example working.

Thanks again,
Bill



On Wed, 18 Dec 2002 18:54:07 -0500
David Abrahams <dave at boost-consulting.com> wrote:
>That part I can help you with.  This will build and run an executable
>
>-- SCHNIPP --
>subproject libs/python/user ;
>
># bring in the rules for python
>SEARCH on python.jam = $(BOOST_BUILD_PATH) ;
>include python.jam ;
>
># bring in rules for testing
>SEARCH on testing.jam = $(BOOST_BUILD_PATH) ;
>include testing.jam ;
>
>run source-file1.cpp source-file2.cpp <dll>../build/boost_python
>   : # program args
>   : # input files
>   : # requirements
>   $(PYTHON_PROPERTIES)
>     <library-path>$(PYTHON_LIB_PATH)
>     <find-library>$(PYTHON_EMBEDDED_LIBRARY)   : exe-name
>;
>-- SCHNAPP --
>
>And this one just builds the executable; testing is your problem:
>
>-- SCHNIPP --
>subproject libs/python/user ;
>
># bring in the rules for python
>SEARCH on python.jam = $(BOOST_BUILD_PATH) ;
>include python.jam ;
>
>exe exe-name : source-file1.cpp source-file2.cpp <dll>../build/boost_python
>   : # requirements
>   $(PYTHON_PROPERTIES)
>     <library-path>$(PYTHON_LIB_PATH)
>     <find-library>$(PYTHON_EMBEDDED_LIBRARY) ;
>-- SCHNAPP --
>
>HTH,
>--
>                        David Abrahams
>    dave at boost-consulting.com * http://www.boost-consulting.com
>Boost support, enhancements, training, and commercial distribution





_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail





More information about the Cplusplus-sig mailing list