[Fixed] Bison / Flex issues compiling from source WinXP

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
hamm4915
New user
Posts: 2
Joined: 01 Jan 2009, 05:49

[Fixed] Bison / Flex issues compiling from source WinXP

Post by hamm4915 »

I followed the instructions from http://wiki.wz2100.net/Windows_Compile_Guide_(MinGW) Windows Compile Guide (MinGW). I am using Windows XP SP3.

I used the following as my path for the cmd session:

Code: Select all

set PATH=\MinGW\bin;\WINDOWS\system32;"\program files\gnuwin32\bin"
When I ran mingw32-make, I would always get errors on bison or flex similar to the error below.

Code: Select all

bison -d  -o resource_parser.tab.c resource_parser.y
process_begin: CreateProcess(NULL, bison -d -o resource_parser.tab.c resource_parser.y, ...) failed.
This is indicating that mongw32-make is unable to find the respective executable.

This set path will allow mingw32-make to run with no errors. Short name was used for "Program Files" instead of the full name.

Code: Select all

set PATH=\MinGW\bin;\WINDOWS\system32;\progra~1\gnuwin32\bin
I hope this helps.
neouser99
New user
Posts: 2
Joined: 10 Dec 2008, 01:54

Re: [Fixed] Bison / Flex issues compiling from source WinXP

Post by neouser99 »

windows isn't very consistent, this being a very good example. if you drop the quotes from the PATH, it would work just fine without the shortnames... dumb isn't it?