You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use both Bison and Flex in C++ mode so I can utilise features like vectors. I am using Visual Studio 2019 and the pre-compiled win_flex_bison3-latest.zip as found here to make my custom build rules (version 3.7.4).
I have attempted to enable C++ input by adding %require "3.7.4" and %language "c++" to the prologue. When I then try to rebuild my solution it results in some 109 errors.
The 1st error is that C++ flex source code requires FlexLexer.h to be available in include paths (add include path to FlexLexer.h or copy it to folder where C++ compiler can find it).
See #69 (comment)
1>C:\repos\Calculator\Calculator\calculator.flex.cpp(368,10): fatal error C1083: Cannot open include file: 'FlexLexer.h': No such file or directory
I am trying to use both Bison and Flex in C++ mode so I can utilise features like vectors. I am using Visual Studio 2019 and the pre-compiled win_flex_bison3-latest.zip as found here to make my custom build rules (version 3.7.4).
I have attempted to enable C++ input by adding
%require "3.7.4"
and%language "c++"
to the prologue. When I then try to rebuild my solution it results in some 109 errors.Bison Input
Output
I'm unsure if I'm doing something wrong or if this is a bug, I tried to follow the bison manual as closely as possible.
The text was updated successfully, but these errors were encountered: