Boost logo

Boost-Build :

From: Artem Alimarine (artem_at_[hidden])
Date: 2006-07-11 04:42:57


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


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