[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiler error .hh file
From: |
John Horigan |
Subject: |
Re: compiler error .hh file |
Date: |
Thu, 19 Dec 2013 08:07:18 -0800 |
But the generated header has inclusion guards. He should be able to include
it multiple times, even if it is a bad idea. There must be another problem.
-- john
On Thu, Dec 19, 2013 at 3:09 AM, Akim Demaille <address@hidden> wrote:
>
> 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.
>
>
>
- compiler error .hh file, Gilberto Monroy, 2013/12/18
- Re: compiler error .hh file, Akim Demaille, 2013/12/19
- Re: compiler error .hh file,
John Horigan <=
- Re: compiler error .hh file, Gilberto Monroy, 2013/12/19
- Re: compiler error .hh file, Gilberto Monroy, 2013/12/20
- Re: compiler error .hh file, Akim Demaille, 2013/12/22
- Re: compiler error .hh file, Akim Demaille, 2013/12/22
- Re: compiler error .hh file, Gilberto Monroy, 2013/12/22