Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-04-06 04:27:50


Alexey Trenikhin wrote:
>
> I have project with following structure:
>
> /root
> /subsystem1
> std.cpp
> /subsystem2
> std.cpp
> main.cpp
> Jamfile
> project-root.jam
>
> How can I describe such structure in Jamfile? Obvious way:
> exe hello : main.cpp subsystem1/std.cpp subsystem2/std.cpp ;
> - does not work due to
> "error: Duplicate name of actual target: <pbin\msvc\debug>std.obj"

If you have a Jamfile in each subsystem directory containing:

   lib subsystem1 : std.cpp : <link>static ;

and then define hello as:

   exe hello : main.cpp subsystem1//subsystem1 ... ;

Or, if you don't wan't to use libraries:

   obj std : std.cpp ;

and

   exe hello : main.cpp subsystem1//std ... ;

HTH,
- Reece
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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