Replies: 1 comment 3 replies
-
MSYS2 brings actually two worlds to you:
It looks to me like CLion tries to use the second one while you started going with the first one. I guess that's the cause. A significant part of users don't get that distinction initially. And while I am not sure about the spectrum of Flex & Bison implementations on Windows (let alone the ways CLion can be set up on Windows), I would:
PS. Have you tried to build you project from the command line on Linux? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The project I'm referring to is my CompilationTheory repo (for your convenience, that's the link). It was originally created when I was working from my Linux machine and it works extremely great there. But it would be a shame if I couldn't deliver the tools that rely on flex and bison to the Windows users (including myself!).
Well, I've got a MSYS2 terminal installed with a bunch of MinGW64 standard apps.
I assumed the flex and bison may be kind of non-typical tools so they could not have been ported yet to Windows... But then I checked and saw that it's not true. So to prepare I did
pacman -S flex
,pacman -S bison
.Then I've cloned my project with CLion and tried to build it. Well, the
flex.exe
andbison.exe
apps seem to be functioning, but the IDE failed to compile my code because of a single include...The file
FlexLexer.h
ended up ink:\msys64\usr\include
. The toolchain that CLion calls "MinGW" is located ink:\msys64\mingw64
.This makes me wonder if I'm doing something wrong. Is there an example of how one can build something that uses flex and bison for Windows? There's an issue #1911 where people were discussing this missing file. I agree that it's not a bug on MSYS2's side, but that doesn't concern me. Of course, I don't mean that you guys owe me something. I just want a friendly advice from people on how to achieve the expected result. Maybe there's another implementation of flex&bison for Windows that you'd recommend? If not, then what do you think I should do?
Beta Was this translation helpful? Give feedback.
All reactions