Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-22 02:24:49


Hi Alain,

> I am trying to use 'usage-requirements', but I seem to be having some
> problems:
......
> ==================================================================
> ~/code/tst/Portec/RF-Link-Eval/code/generic/apps/rf>bjam -d2 cfg
> ...found 14 targets...
> ...updating 2 targets...
> icc.compile.c ../../../generic/apps/rf/bin/icc/debug/link-static/cfg.o
> ../../../generic/apps/rf/bin/icc/debug/link-static/cfg.lis
>
> C:/icc/bin/icc12w -e -Wf-intenum -Wf-cpdoff
> -I"../../../generic/hc12_e128" -I"../../../generic/libs/iic/hc12_E128"
> -I"../../../generic/libs/sio" -I"../../../generic/libs/sio/hc12_E128"
> -I"../../../generic/libs/x24" -I"c:/icc/include" -c -o "b
> in\icc\debug\link-static\cfg.o" "cfg.c"
>
> !E cfg.c(36): Could not find include file "crc.h"

.....

> Any ideas why?

Yes. Your Jamfile has:

obj cfg : cfg.c ;

and absolutely nothing says that "cfg" depends on /lib-crc//crc,
so usage requirements of that target are not applied to 'cfg'. Did you try
adding /lib-crc//crc to the list of sources.

On a related note, why do you define a separate target for compiling 'cfg'?

And yet another note: if possible, please already provide complete testcase
which reproduces a problem, packed as zip, tar.bz2 or tar.gz archive.
Otherwise, I have to manually place the files in proper places, add missing
files, and so on, and it takes time.

- 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