On Tue, Mar 3, 2015 at 1:18 PM, Steven Watanabe <watanabesj@gmail.com> wrote:
AMDG

On 03/03/2015 07:54 AM, Paulo Márcio Figueiredo Alves wrote:
>   I'm wondering whether it's a b2 bug or I'm missing something, if I invoke
> *b2* on the annexed project it works, but *b2 -j4* does not (Windows only,
> I do not know a non-Windows case).
>
> The projects *c* and *b* depends on *a*. Project *c* works always, it's a
> test, but *b* works and fails depending on -j option value.
> Is there a better approach to achieve what I want?
>

The problem is that the dependency b.obj -> bin/a.exe
is missing.  I think what you need is

obj b.obj : b.rc : <dependency>copy_a ;
exe b : b.obj main.cc ;

 
This works like a charm! Thank you.
I've tried the following, but does not work:
DEPENDS b.rc : copy_a ;

 
In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build