Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-02-20 12:17:45


Eli Green wrote:

> I've created a generator that lets me turn .ec (Informix ESQL) into .c
> files. This part works perfectly. The next part, actually compiling the .c
> file, is failing because the current directory is not being searched for
> header files. So where bjam is doing this:
>
> esql -e xxx.c
> gcc -c xxx.c
>
> I want to somehow convince it to do this:
>
> esql -e xxx.c
> gcc -I. -c xxx.c
>
> While I'm relatively familiar with normal Perforce Jam, bjam's build system
> is obviously a fair bit more complex and I get the feeling I can't just
> append "." to INCLUDE on $(<). If that IS possible, I just need to know
> where to do it.

How is compiling of a generated file .c different from compilation of
an ordinary .c file? If the header file is not generated,
then the 'include' feature allows to add an include path.

If the header file itself is generated, see
http://boost.org/boost-build2/doc/html/bbv2/reference/generated_headers.html

- 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