3 Jan 2008 09:21
Jam bug regarding cyclic header files
Hubert Mackenberg <hubert.mackenberg <at> sagem-orga.com>
2008-01-03 08:21:05 GMT
2008-01-03 08:21:05 GMT
Hi, it seems there is a bug in Jam regarding cyclic header files: If have have cyclic header files then a .c file depending on any of these header file is not recompiled under certain conditions. A simple example is given below. The problem seems to be present in all Jam versions. Does anyone have an idea how to fix it? Thanks a lot, Hubert --- Eaxmple: In this example a.c includes a.h, a.h includes b.h and b.h includes c.h. But a.c is not recompiled if c.h is updated. To get the example running you need 5 files a.c, b.c, a.h, b.h and c.h. You may create them using: echo "this is a.c" > a.c echo "this is b.c" > b.c echo "this is a.h" > a.h echo "this is b.h" > b.h echo "this is c.h" > c.h Then use the 'test.jam' file added below and run(Continue reading)
RSS Feed