[Top][All Lists]

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

How to use flex and bison with the C++ interface ?

From: Timothy Madden
Subject: How to use flex and bison with the C++ interface ?
Date: Fri, 15 Jun 2012 16:19:34 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120607 Thunderbird/10.0.5


Can automake use flex and bison to generate .cc files from lexer.ll and parser.yy files ?

I currently get this error from the make command:

        address@hidden code-formatter]$ make
        /bin/sh ./ylwrap code-formatter.ll lex.yy.c \
                                                                -- flex
        make: *** [] Error 1
        address@hidden code-formatter]$

I am new to automake and as you can see the message really doesn't tell me anything about what is going wrong.

This is my

        code_formatter_SOURCES=code-formatter.ll code-formatter.yy

as you can see, no secrets here either.

Am I missing something ? Do I need to write explicit makefile rules to use the C++ interface ?

Thank you,
Timothy Madden

reply via email to

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