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@lists.boost.org [mailto:boost-build-bounces@lists.boost.org]
On Behalf Of Meindert Oldenburger
Sent: Thursday, May 26, 2011 2:21 AM
To: boost-build@lists.boost.org
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