|
From: | Motiwala, Yusuf |
Subject: | MSVC project file added to flex |
Date: | Mon, 24 Jun 2002 17:19:11 +0530 |
hi,
Since MSVC makefile/project option does not exist in latest flex distribution, can you add this in flex distribution. Pls see http://www.geocities.com/ymotiwala/flex.html
Here is snapshot of the page.
Regards.
Yusuf
Building Flex for/with Microsoft Visual C++ 6.0 and .Net
Yusuf Motiwala < address@hidden <mailto:address@hidden> >
Building flex on MSVC does not require any code changes. You only require proper project/workspace files [Download <flexmsvc.zip>, ~10KB]
Download latest flex distribution from here <http://ftp.dmz.algx.net/pub/gnu//non-gnu/flex/flex-2.5.4a.tar.gz> or any other gnu mirror
untar/unzip flex distribution. say in f:\flex-2.5.4
download MSVC project file flexmsvc.zip [Download <flexmsvc.zip>, ~10KB]
unzip flexmsvc.zip into f:\flex-2.5.4\MISC <file:///f:/flex-2.5.4a/MISC> directory.
A new directory MSVC will be cerated in f:\flex-2.5.4\MISC <file:///f:/flex-2.5.4a/MISC> directory. Your directory structure should now look like following
Flex-2.5.4\MISC\MSVC\
-Flex
-Flexlib
-InitScan
-TestProject
Open msvc.dsw in directory MSVC using Visual C++
Build [from build menu or right click flex workspace and select build]. This will build flex.exe, flexlib.lib, and initscan.exe. Ignore initscan.exe
Build process will create new directory name 'Bin\Release' in Flex-2.5.4\MISC\MSVC\. This directory will contains flex.exe and flexlib.lib
Test your build by opening TestProject.dsw in MISC/MSVC\TestProject directory. It compiles sample lex file and generates a win32 console application
Using Flex with Microsoft Visual C++ 6.0 and .Net
You need to setup custom build rules to compile your lex files. See TestProject in MISC\MSVC\TestProject directory [right click on example.l, ->Settings]. It compiles sample lex file and generates a win32 console application
I also made a test application which integrates flex with MSVC. Send me an e-mail and I will send you details.
Problem??
Write me and I will try to help you as far as I can.
==================================================================================================
Yusuf Motiwala < address@hidden <mailto:address@hidden> >
Regards,
Yusuf
[Prev in Thread] | Current Thread | [Next in Thread] |