Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-03-19 08:10:26


Steve Juranich wrote:

Hi Steve,

sorry that it took quite some time to reply,

> 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.

Could you modify yystype.h to read:

#ifndef BOOST_GRAPH_YYSTYPE_H
#define BOOST_GRAPH_YYSTYPE_H

union yystype {
  int i;
  void* ptr;
};
#define YYSTYPE yystype

#endif // BOOST_GRAPH_YYSTYPE_H

This works for me and it if works for you as well, I'll commit the change.

- Volodya


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