I've recreated the advanced calculator from the book "flex & bison" and made some minor adaptations for c++. But what I cannot solve is that I get following error when compiling.
C:\..\BisonFlexCalculator/Includes/calc.hpp:17: multiple definition of 'symtab'
C:\..\BisonFlexCalculator/Includes/calc.hpp:17: first defined here
C:\..\BisonFlexCalculator/Includes/calc.hpp:17: multiple definition of 'symtab'
C:\..\BisonFlexCalculator/Includes/calc.hpp:17: first defined here
collect2.exe: error: ld returned 1 exit status
I got a header guard in the .hpp-file where symtab is declared, but yet it says that it got multiple definitions. I've uploaded the code to a github-repo. Can someone please help me understand what I'm doing wrong and how to solve my problem?
Thank you!