Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-07-11 08:24:38


Artem Alimarine wrote:
> Hi all,
>
> I am new to the boost build system. The following problem bothers me. In
> my project there are files with the same name in different directories.
> When I build the executable I write
>
> exe foo
> : dir1/foo.cpp
> dir2/foo.cpp
> ...
> ;
>
> The object files are put flat in the build directory. As the result one
> of the foo.o overwrites the other and I get link errors.
>
> Creating a library for each subdir seems to be an overkill in this case.
> Is there a solution for this? Why does not the build directory reflect
> the structure of the source directory to avoid such problems?
>
> Surely I am not the only one having this problem, but unfortunately
> could find anything in the docs.
>
> Thanks,
> Artem

Multiple libs is the solution I went with for now. I put a jam file in
each sub-directory to build a lib and then referenced it from the
parent. A little annoying, but I set it up once and went on with my
work. :->

There's an outstanding ticket on this issue:
http://zigzag.cs.msu.su/boost.build/ticket/83

Phillip


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk