[m-rev.] diff: tools/lmc: include library in C include path
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Oct 25 22:16:11 AEST 2001
On 25-Oct-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> On 25-Oct-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > -DIR_FLAGS="--cflags -I$WORKSPACE/trace --cflags -I$WORKSPACE/runtime --cflags -I$WORKSPACE/boehm_gc --cflags -I$WORKSPACE/boehm_gc/include -I$WORKSPACE/library"
> > +DIR_FLAGS="--cflags -I$WORKSPACE/trace --cflags -I$WORKSPACE/library --cflags -I$WORKSPACE/runtime --cflags -I$WORKSPACE/boehm_gc --cflags -I$WORKSPACE/boehm_gc/include -I$WORKSPACE/library"
>
> The library is now included twice. Is this intentional? If so, why?
Yes. Once with `--cflags -I...' and once with plain `-I ...'.
The first occurrence is to tell the C compiler to search the library
directory for .h files, and the second is to tell the Mercury compiler
to search it for Mercury interface files.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "... it seems to me that 15 years of
The University of Melbourne | email is plenty for one lifetime."
WWW: <http://www.cs.mu.oz.au/~fjh> | -- Prof. Donald E. Knuth
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list