Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-27 23:34:19


"Shukla, Nitin (Export)" <nitin.shukla_at_[hidden]> writes:

> I am fairly new to using bjam tool and my jamfile is a simple one. It looks
> like this:
>
> # Specify our location in the boost project hierarchy
> subproject libs/python/example/tutorial/nitin ;
>
> # Include definitions needed for Python modules
> import python ;
>
> extension world # Declare a Python extension called
> hello
> : main.cpp # source
> <dll>../../../build/boost_python # dependencies
> ;
>
> I do not know how can I specify bjam to compile and link with other dll for
> build the ".pyd" and ".lib" file. Can anyone help me how can I specify this
> in my jam file?

If I understand you correctly, I think what you need to do is

 extension world # Declare a Python extension called world
 : main.cpp # source
     <dll>../../../build/boost_python # dependencies
 : # requirements
     <library-path>path/to/a/directory/containing/your/dlls/import/.lib
     <find-library>name/of/your/dll
 ;

-OR-

 extension world # Declare a Python extension called world
 : main.cpp # source
     <dll>../../../build/boost_python # dependencies
 : # requirements
     <link-library>full/path/to/your/dlls/import/.lib
 ;

> It will be usefully for me if some one can tell where I can get
> documentation on writing jam files.

You can get help with Boost.Build on the jamboost list:

http://www.boost.org/more/mailing_lists.htm#jamboost

> I am using WinPython 2.3.2. I have built boost on Windows 2000 using
> MinGW compilers.

HTH,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net