Boost logo

Boost Users :

From: Kelly Burkhart (kelly_at_[hidden])
Date: 2005-03-13 00:08:55


On Sat, 2005-03-12 at 21:42, David Abrahams wrote:
> Kelly Burkhart <kelly_at_[hidden]> writes:
<snip>
> > When I try to build with 'bjam tst' it is not able to find the boost
> > headers, which makes sense, because I've not been able to figure out how
> > to indicate where they live.
> >
> > How is this accomplished?
>
> exe tst : tst.cpp : <include>path/to/boost/headers ;

This works, I think:

$ bjam tst
...patience...
...found 371 targets...
...updating 2 targets...
gcc.compile.c++ bin/gcc/debug/tst.o
gcc.link bin/gcc/debug/tst
...updated 2 targets...

Why are there 371 targets? The only target is 'tst' (and perhaps
tst.o).

Also, adding this in each and every jamfile doesn't seem right. Can I
put something in boost.build site-config.jam or user-config.jam to
effect all of my projects?

How do I specify libs? If I replace the contents of my tst.cpp with
regex_split_example_1.cpp how do I indicate that I want to link with the
appropriate libboost_regex-*?

-K


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