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 lex.yy.cc, > 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 engine_tcp_lex.cc -- 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 Makefile.am: AM_LFLAGS = --c++ -o lex.yy.c -L May be, that link will help too: http://www.mail-archive.com/automake@gnu.org/msg12551.html HTH Andre -- "Humor is a drug which it's the fashion to abuse." -- William Gilbert