Related articles |
---|
Trouble building bison++/flex++ in Linux jsasso@nospam.forme.com (John S) (2006-07-16) |
From: | John S <jsasso@nospam.forme.com> |
Newsgroups: | comp.os.linux.development.apps,comp.compilers |
Date: | 16 Jul 2006 01:04:18 -0400 |
Organization: | Road Runner |
Keywords: | C++, lex, yacc, question |
Posted-Date: | 16 Jul 2006 01:04:18 EDT |
I am trying to build the latest versions of flex++ and bison++ on my
RedHat Fedora Core 3 desktop. I downloaded the latest sources from:
ftp://ftp.tu-darmstadt.de/pub/programming/languages/C++/tools/flex++bison++/LATEST/
With flex++, I build it with 'make first_flex' and then test it with
'make test'. According to the README, this test should show no
differences, but instead I get page after page of output from diff. I
even tried building the first flex++ example in
http://www.mario-konrad.ch/index.php?page=20024 but it fails immediately
with:
"calc.l", line 1: bad character: %
"calc.l", line 1: unknown error processing section 1
"calc.l", line 1: unknown error processing section 1
"calc.l", line 1: unknown error processing section 1
"calc.l", line 2: unrecognized '%' directive
With bison++, during errors I get some alarming warnings such as:
allocate.c:23: warning: conflicting types for built-in function 'calloc'
conflict.c:34:1: warning: "alloca" redefined
In file included from /usr/include/stdlib.h:606,
from system.h:8,
from conflict.c:24:
Has anyone had any success with building under Linux, esp. RH FC?
--john
Return to the
comp.compilers page.
Search the
comp.compilers archives again.