help-bison
[Top][All Lists]
Advanced

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

Problems with bison.simple and C++


From: Adam Tee
Subject: Problems with bison.simple and C++
Date: Wed, 16 Jan 2002 13:02:19 +0000

Hi,

I'm trying to compile a parser using C++ but I get the following error 
message:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../intl -I../include 
-I../pixmaps -DLOCALEDIR=\"/home/eenajt/local/share/locale\" 
-DPKGDATADIR=\"/home/eenajt/local/share/denemo/\"    -g -O2 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/X11R6/include -I/usr/include/gnome-xml -g -Wall -O2 -fPIC -c -o 
easylyparser.o `test -f easylyparser.cpp || echo './'`easylyparser.cpp
/usr/share/bison/bison.simple: In function `int lyparse()':
/usr/share/bison/bison.simple:450: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:450: parse error before `=' token
/usr/share/bison/bison.simple:495: `yystacksize' undeclared (first use this 
   function)
/usr/share/bison/bison.simple:495: (Each undeclared identifier is reported 
only 
   once for each function it appears in.)
/usr/share/bison/bison.simple:498: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:498: parse error before `=' token
/usr/share/bison/bison.simple:543: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:543: parse error before `;' token
/usr/share/bison/bison.simple:543: `yysize' undeclared (first use this 
   function)
/usr/share/bison/bison.simple:544: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:544: parse error before `;' token
/usr/share/bison/bison.simple:544: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:544: parse error before `sizeof'
./easylyparser.y: In function `int lylex()':
./easylyparser.y:533: warning: too many arguments for format
make: *** [easylyparser.o] Error 1

What is the solution, if any ?  I have another parser which produces a 
similar error.  Is it something to do with the YYSTACKSIZE?

Thanks in Advance,

Adam



reply via email to

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