I'm trying to use the GnuWin32 port of Bison in a Visual Studio VC++6 Custom Build step, and I keep getting an error message (apparently from M4) saying it can't find a file. Is there some environment variable that should be set? I tried running it from a command prompt and had the same problem.
I took a quick glance at the code in output.c and it appears that "M4" is used as an arg to getenv, but I don't know what it should be set to. I suspect that M4 is having a problem finding the sugar files, but just a guess.
I'm pretty sure that my setup is correct because it works if I substitute Cygwin's bison in the custom command.
But I want to be native.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to use the GnuWin32 port of Bison in a Visual Studio VC++6 Custom Build step, and I keep getting an error message (apparently from M4) saying it can't find a file. Is there some environment variable that should be set? I tried running it from a command prompt and had the same problem.
I took a quick glance at the code in output.c and it appears that "M4" is used as an arg to getenv, but I don't know what it should be set to. I suspect that M4 is having a problem finding the sugar files, but just a guess.
I'm pretty sure that my setup is correct because it works if I substitute Cygwin's bison in the custom command.
But I want to be native.
Thanks.
Hi,
To set a Custom Build to *.y file, I set the following Commands:
path=%path%;%GNUDIR%\bin
bison filename.y
finally set the correct Output:
yy.tab.c