I’ve recently had to use flex and went through some trouble trying to compile it to win32 platform (using my VS.NET 2003).
So, if you want to compile here’s what you do:
- Get the latest flex distribution. You can find instructions on flex’s homepage.
- Extract the distribution package to some folder (ex: d:\flex).
- Download the VS.NET solution I have created – flexvsnet.zip (25.74 KB)
- Unzip flexvsnet.zip to the flex misc folder (ex: d:\flex\MISC).
- A new VS.NET folder is created under the MISC folder. Open the solution in that folder and build it.
- The build process creates a new ‘bin’ folder under the ‘vs.net’ folder where flex.exe and flexlib.lib are located.
I have also included a test project which shows how to use flex with visual studio. This samples compiles a lex file and builds a console application.
If you just want the flex.exe without bothering with compiling it I have packed it here: flex-2.5.4-win32.zip (73.11 KB)