Boost logo

Boost-Build :

Subject: Re: [Boost-build] Generated header files.
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-12-04 15:03:27


On Thursday 04 December 2008 17:56:25 Mathias Lorente wrote:
> Vladimir Prus wrote:
> > Mathias Lorente wrote:
> >
> >
> >
> >> First the header files are generated, then my library is built.
> >> New definition to build my library:
> >>
> >> lib my_lib
> >> : [ glob-tree *.cpp : .svn ]
> >> : <implicit-dependency>../utils//gen
> >> <link>static
> >> <define>BUILDING_LIBRARY
> >> <variant>debug:<define>ENABLE_DEBUG_LOG
> >> ;
> >>
> >
> > 'implicit-dependency' should refer to the header target, not the utility
> > that generates it.
> >
> > - Volodya
> In fact my input and generated files are in subdirectories. When I try:
> <implicit-dependency>my_subdir/header.h I got following error messages:
>
> c:/travail/boost_1_37_0/tools/build/v2/build\virtual-target.jam:1047:
> in virtual-target.register-actual-name from module virtual-target
> error: Duplicate name of actual target: <p.>res\header.h
> error: previous virtual target {
> Jamfile</c:/travail/tests/bjam/lib>%Jamfile</c:/travail/tests/bjam/lib>.generate-header-res/header.h.H
> { gcc%gcc.link-gen.exe.EXE { gcc%gcc.compile.c++-gen.o.OBJ {
> gen.cpp.CPP } } } { res/header.txt. } }

Do you think you can send me a minimal but complete archived project that reproduces
this problem?

Thanks,
Volodya


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