[Top][All Lists]

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

Re: C++, lex and automake

From: Andre Heine
Subject: Re: C++, lex and automake
Date: Tue, 13 Jan 2009 16:25:57 +0100
User-agent: KMail/1.9.5

Am Dienstag, 13. Januar 2009 12:08 schrieb Юрий Пухальский:
> Good day!
> I've a lex file with %option c++.
> Being processed by lex it produces by default a file named,
> while automake expects it to be lex.yy.c when constructing a line with
> ylwrap:
> /bin/sh ./ylwrap engine_tcp_lex.ll lex.yy.c -- flex  -d
> Setting LEX_OUTPUT_ROOT doesn't help, because it is being suffixed
> with .c when constructing the ylwrap line.
> Do I do something wrong?

> For now the only thing i can invent is to set %option
> outfile="lex.yy.c", which is... well, you understand.

Try to add following line to your

AM_LFLAGS = --c++ -o lex.yy.c -L

May be, that link will help too:



"Humor is a drug which it's the fashion to abuse."
                -- William Gilbert

reply via email to

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