Including bison parser into C++

jed2@dana.ucc.nau.edu (Joshua Earl Donahue)
14 Jun 2001 14:45:17 -0400

          From comp.compilers

Related articles
Including bison parser into C++ jed2@dana.ucc.nau.edu (2001-06-14)
Re: Including bison parser into C++ jacob@jacob.remcomp.fr (jacob navia) (2001-06-21)
Re: Including bison parser into C++ tim.vanholder@falconsoft.be (Tim Van Holder) (2001-06-21)
| List of all articles for this month |

From: jed2@dana.ucc.nau.edu (Joshua Earl Donahue)
Newsgroups: comp.compilers
Date: 14 Jun 2001 14:45:17 -0400
Organization: Northern Arizona University, Flagstaff AZ, USA
Keywords: yacc, C++, question, comment
Posted-Date: 14 Jun 2001 14:45:17 EDT

What I am trying to do is include my bison parser into C++ I currently
have the parser so that it will compile fine with the CC compiler and
to include the parser into my program I just #include "y.tab.c". This
works fine if I am just including it into an executable, i.e. the main
program. but when I try to include it into a class that is included
by the main program it says that all of the functions in y.tab.c are
multiply defined. Any Ideas? Thanks
[Looks like the class is included more than once so you have to make it
a friend function or something. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.