Boost logo

Boost-Build :

Subject: Re: [Boost-build] Ignore a source object
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2011-05-26 10:57:58


Meindert,

It is not clear to me what version.c file your are referring to since I do not see it in your example. You may want to try this instead to fix it:

obj wfd_iht : wfd.c : <define>IHT ;
exe iht
:
        wfd_iht
        httpserv.c
:
        <include>.
;

Chris

From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Meindert Oldenburger
Sent: Thursday, May 26, 2011 2:21 AM
To: boost-build_at_[hidden]
Subject: [Boost-build] Ignore a source object

Hello,

In a project i added version.c as source for each target in this project. But a problem raised when i made this construction:

obj wfd_iht.o : wfd.c : <define>IHT ;
exe iht
:
        wfd_iht.o
        httpserv.c
:
        <include>.
;

error: Duplicate name of actual target: <p../../build/appl/wfd/gcc-4.5.3/debug>wfd_iht.o
error: previous virtual target { gcc%gcc.compile.c-wfd_iht.o.OBJ { wfd.c.C } }
error: created from ./wfd_iht.o
error: another virtual target { gcc%gcc.compile.c-wfd_iht.o.OBJ { ../../build/version.c.C } }
error: created from ./wfd_iht.o
error: added properties: none
error: removed properties: none

I could made an object of version.o and include that as source, but I like to know if it possible to exclude in this case version.c in the taget wfd_iht.o ?

Regards,
Meindert

________________________________
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.



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