16 Oct 23:40
Fw: problems with bison-flex
Jim Michaels <jmichae3 <at> yahoo.com>
2008-10-16 21:40:01 GMT
2008-10-16 21:40:01 GMT
see below. cannot rename output files to .cpp and compile with C++ compiler. compiler chokes. using bison 2.1 and flex 2.5.4. there is no later version available via gnuwin32 package. cannot use cygwin. Jim Michaels jmichae3 <at> yahoo.com http://JesusnJim.com On Wed, 15 Oct 2008, Jim Michaels wrote: > well, I used C versions of everything like you said to do, and made them .cpp files. > I have some problems. bison & flex can't stand themselves. > > > b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; > Error E2015 lex.yy.cpp 5696: Ambiguity between 'std::isatty(int)' and 'isatty(int)' in function yy_init_buffer(yy_buffer_state *,std::FILE *) > *** 1 errors in Compile *** > parser.tab.cpp: > > extern "C" { > # endif > # ifndef YYMALLOC > # define YYMALLOC malloc > # if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \ > && (defined (__STDC__) || defined (__cplusplus))) > void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ > # endif > # endif > # ifndef YYFREE(Continue reading)
RSS Feed