[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10154: ylwrap error:
From: |
Stefano Lattarini |
Subject: |
bug#10154: ylwrap error: |
Date: |
Mon, 28 Nov 2011 20:32:59 +0100 |
User-agent: |
KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; ) |
tags 10154 notabug
thanks
On Monday 28 November 2011, Joe Chen wrote:
> Hi,
>
Hi Joe, thanks for the report.
> I am using automake for compile flex input file. The flex command
> line option --prefix=<STRING> or -P<STRING> works with the direct
> invoking of flex, buy ylwrap gets error all the time for me:
>
> /bin/bash ../build-aux/ylwrap configf_lexer.l lex.yy.c configf_lexer.c
> -- flex --case-insensitive --prefix=configf_yy
> make[4]: *** [configf_lexer.c] Error 1
>
>
> Is this a known issue?
>
This is not an issue in ylwrap, but rather and usage error. Let's see
again the help screen from ylwrap:
Usage: ylwrap INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
Wrapper for lex/yacc invocations, renaming files as desired.
INPUT is the input file
OUTPUT is one file PROG generates
DESIRED is the file we actually want instead of OUTPUT
PROGRAM is program to run
ARGS are passed to PROG
Any number of OUTPUT,DESIRED pairs may be used.
This suggests that, instead of using `--prefix' to modify the name of
the generated `.c' file, you should simply use the DESIRED argument:
ylwrap configf_lexer.l lex.yy.c configf_lexer.c \
-- flex --case-insensitive
Or, if you have other reasons to want to stick with the `--prefix'
option (whose exact effects and semantics I don't pretend to know),
you must inform `ylwrap' of the different expected OUTPUT filename:
ylwrap configf_lexer.l lex.configf_yy.c configf_lexer.c \
-- flex --case-insensitive --prefix=configf_yy
HTH,
Stefano