[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding #includes from a yacc .y.

From: Ralph Corderoy
Subject: Finding #includes from a yacc .y.
Date: Mon, 20 Nov 2017 18:38:59 +0000


In a subdirectory, a foo.y gets turned into a foo.c.  Both thus
`#include "bar.h"' that sits alongside them.  This all works fine.  But
use a build directory, i.e. run configure from somewhere other than `.',
and foo.c fails to build because bar.h isn't found.  (A similar problem
happens with lex's C output.)

It seems wrong for foo.y to have to `#include "path/from/root/to/bar.h"
since that means it has to alter if they move around the hierarchy.  Is
there another way?

Cheers, Ralph.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]