[Top][All Lists]

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

Bison and automake together

From: Paulo J. Matos
Subject: Bison and automake together
Date: Sat, 30 Oct 2010 11:46:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)


I am slightly confused as to whether I should be posting this to the
bison or this mailing list but here it goes.

I have a bison based project which has the following definitions:
| BUILT_SOURCES = scgparser.h
| AM_YFLAGS = -d
| AM_LDFLAGS = -lgmpxx -lgmp
| bin_PROGRAMS = scgc
| scgc_SOURCES = scgparser.yy scglexer.l

When I ran this with ./configure && make I get:
| /bin/bash ./ylwrap scgparser.yy \
|           scgparser.h y.output scgparser.output -- bison -y  -d

This is ok because bison generates and that are renamed
by ylwrap as and scgparser.h respectively.

However, bison generated parser includes (which was
the name known to bison when the file was generated). This results in
an error during compilation since there is no anymore when the is compiled. What am I missing here? 

Feel free to redirect me to the bison mailing list if this is not an
automake config problem.



reply via email to

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