[Top][All Lists]

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

Re: Flex c++ bug

From: Alexandre Duret-Lutz
Subject: Re: Flex c++ bug
Date: Tue, 04 Feb 2003 21:21:18 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

>>> "Aidan" == Aidan Delaney <address@hidden> writes:

 Aidan> address@hidden traditional $ make
 Aidan> flex   traditional.ll && mv lex.yy.c

Automake indeed does not support C++ scanners (i.e., flex -+), but 
will compile a C scanner as C++ source when asked so.

 Aidan> AFAIK it should run the @BISON@ -d first

Automake 1.7.3 will have the following paragraphs in its manual.

|    When `yacc' is invoked, it is passed `YFLAGS' and `AM_YFLAGS'.  The
| former is a user variable and the latter is intended for the
| `' author.
|    `AM_YFLAGS' is usually used to pass the `-d' option to `yacc'.
| Automake knows what this means and will automatically adjust its rules
| to update and distribute the header file built by `yacc -d'.  What
| Automake cannot guess, though, is where this header will be used: it is
| up to you to ensure the header gets built before it is first used.
| Typically this is necessary in order for dependency tracking to work
| when the header is included by another file.  The common solution is
| listing the header file in `BUILT_SOURCES' (*note Sources::) as follows.
|      BUILT_SOURCES = parser.h
|      AM_YFLAGS = -d
|      bin_PROGRAMS = foo
|      foo_SOURCES = ... parser.y ...

Alexandre Duret-Lutz

reply via email to

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