help-bison
[Top][All Lists]
Advanced

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

Re: %union errors


From: Vincent Zweije
Subject: Re: %union errors
Date: Mon, 8 Dec 2008 10:19:24 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Dec 05, 2008 at 07:02:15PM -0600, Benny Hardage wrote:

||  I'm receiving the following errors when I compile:
||
||  In file included from compiler.l:17:

You seem to be including your generated parser source into your generated
scanner source. Is that right?

||  parser.y:27: error: ISO C++ forbids declaration of 'list' with no type

This usually means you forgot to #include <list>.

||  parser.y:27: error: invalid use of '::'
||  parser.y:27: error: expected ';' before '<' token
||  parser.y:28: error: ISO C++ forbids declaration of 'Variable' with no type

You probably forgot to declare Variable.

The rest is the same.
-- 
WCC - Smart Search & Match
NL  +31 30 7503222
address@hidden
www.wcc-group.com

Attachment: signature.asc
Description: Digital signature


reply via email to

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