Why doesn't Bison work properly on Windows (doesn't generate an output file)?

Bison on windows does not create an output file.

This is the error message I get.

m4_define ([b4_percent_define (lr.keep_unreachable_states)],
[[false]])

m4_define ([b4_rhs_min],
[[-1]])

m4_define ([b4_pact_min],
[[-5]])

m4_define ([b4_conflicting_rules],
[[0]])

I myself have decided this question, this is for others.

+3
source share
3 answers

It seems Bison is not properly handling space-related paths. Move the Bison folder (GnuWin32) to the folder without spaces in this path.

+5
source

Yes, my bison.exe is where in C:\Program Files (x86)\GnuWin32\binand it doesn't work.

.

0

Gnuwin32 C:\Program Files (x86),

.

Ex- Move it to D: \ Gnuwin32 and add a new path to the environment variables.

Note- "Program Files (x86)" or "Program Files" contains a space separating "Program" and "files", and therefore shows an error.

-Extended explanation of the answer provided by DSblizzard

0
source

Source: https://habr.com/ru/post/1731662/


All Articles