Boost logo

Boost Users :

From: Steve Juranich (juranich_at_[hidden])
Date: 2004-03-16 11:43:42


On Tue, 16 Mar 2004, Vladimir Prus wrote:

> Aha, for some reason, some magic which tells bison not to typedef int does
> not work.
>
> > So, it looks like yystype is an 'int'. Unfortunately, I'm kind of beyond
> > the reach of my knowledge and experience, so I'll have to depend on others
> > to tell me what to do next.
>
> Could you look at two things:
>
> 1. Does yystype.h defines YYSTYPE_IS_DECLARED?

Yes. The definition happens on line 8 of yystype.h.

> 2. Does graphviz_graph_parser.hpp checks for any defines before typedefing?
> For me it has the following:
>
> #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
> typedef int YYSTYPE;
> # define yystype YYSTYPE /* obsolescent; will be withdrawn */
>
> Maybe your version of bison uses some different macroses.

My version of graphviz_graph_parser.hpp has the following (lines 55-58):

#ifndef YYSTYPE
typedef int yystype;
# define YYSTYPE yystype
#endif

So it looks like the test is different as well as the #define arguments
being switched around.

When I changed my lines to match your lines, I was able to get the
graphviz_graph_lex.o file, but the build chokes again when it tries to
re-run with -DGRAPHVIZ_DIRECTED=1.

Thanks for the help.

-- 
Stephen W. Juranich
Science Applications Intl. Corp. (SAIC)
(520) 570-7706

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net