[Top][All Lists]

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

Re: compiler error .hh file

From: Akim Demaille
Subject: Re: compiler error .hh file
Date: Thu, 19 Dec 2013 12:09:33 +0100

Le 19 déc. 2013 à 03:15, Gilberto Monroy <address@hidden> a écrit :

> Hi everybody.
> My name is Gilberto, I use the next tools:

Hi Gilberto,

> g++ -o parser location.hh position.hh rcss_parser.tab.cc lex.yy.c 
> rcss_parser_driver.cpp -lfl

This compilation line is fishy.  You are not expected to compile
the headers (*.hh files).  Compile only *.cc and *.ccp files.

>                 from rcss_parser.y:15:
> rcss_parser.tab.hh:583:3: error:

If I read this correctly, in your *.y file you #include the generated
parser header.  Don't do that, Bison does for you.  This would explain
why the symbols are defined twice.

reply via email to

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