Boost logo

Boost-Build :

Subject: Re: [Boost-build] Ignore a source object
From: Meindert Oldenburger (meindert66_at_[hidden])
Date: 2011-05-27 04:32:14


Tanks Chris,

Sorry for the misunderstanding about the version.c file. The version.c file
should be compiled with each target, so also the target wfd. So in the
parend project definition i put this version.c as <source> in the
requirement section.

Now i think that the error from bjam is revering to the fact that version.c
is compiled for target " obj wfd_iht" and for " exe iht" with different
flags, but with the same name.

My solution is now to include the version.o instead of version.c, that seems
to work.

Two questions i still have:
- It seems that the <source>version.c is also included in "obj wfd_iht" but
creating a object from two source files (wfd.c and version.c)?
- Is it possible to exclude a particular source item that is specified in
the parent project file as mandatory ?

Meindert

2011/5/26 Nogradi, Chris <Chris.Nogradi_at_[hidden]>

> 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.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>



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