GNU bug report logs - #19020
improve support for flex in C++ mode

Previous Next

Package: automake;

Reported by: brahim sahbi <brahim.sahbi <at> gmail.com>

Date: Tue, 11 Nov 2014 16:42:01 UTC

Severity: normal

Tags: moreinfo

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: brahim sahbi <brahim.sahbi <at> gmail.com>
To: bug-automake <at> gnu.org
Subject: flex support
Date: Tue, 11 Nov 2014 11:51:07 +0100
[Message part 1 (text/plain, inline)]
Hello,

I am trying to use flex with these options
AM_LFLAGS = --header-file=lang.h --yyclass=Lang --c++
My problem is that the file generated by lex is lex.yy.cc and not lex.yy.c.
So this command in the generated Makefile:
.lpp.cpp:
    $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@
-- $(LEXCOMPILE)

turns my lang.lpp to lang.cppc

I have looked in the ylwrap by launching it with $(SHELL) -x and had this
printed
++ printf '%s\n' lex.yy.cc
++ sed 's|lex\.yy\.c|lang.cpp|g;'
+ to=lang.cppc

Am I doing it worng or is this a bug?

Thanks.

-- 
Brahim SAHBI
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.