[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison - MSYS - Windows/DOS
From: |
Luca |
Subject: |
Re: bison - MSYS - Windows/DOS |
Date: |
Wed, 13 Apr 2011 20:16:11 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
Il 13/04/2011 14.11, Gus Gassmann ha scritto:
I am using bison 2.3 in MSYS. The setup works for me, but I have recently
become a bit more ambitious. What I would like to do is embed the bison command
into a Visual Studio build. The bison executable under MSYS is a Windows
executable, so this ought to work (it does work with flex), but I get an error
about not finding m4sugar.m4. Is there a command line option I could use to
override the default location?
Just to be perfectly clear:
bison -ldv -p osil -o OSParseosil.tab.cpp OSParseosil.y
works inside an MSYS box, but inside a DOS box gives me the error
bison: cannot open file `/usr/share/bison/m4sugar/m4sugar.m4': No such file or
directory
Is there a way that I can get this command to run in a DOS box?
Thanks
_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison
You can run bison from a batch file,
then add the batch file to a VS post build event ,
but you have to add bison to your path, e.g:
path=%path%;c:\PATH_TO_BISON_EXE\bison.exe
bison -ldv -p osil -o OSParseosil.tab.cpp OSParseosil.y
Maybe this link to "Custom Build Rules for Visual C++ 2005 IDE" could be useful:
http://msdn.microsoft.com/en-us/library/aa730877%28v=vs.80%29.aspx
you can download build rules from here:
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=36873774-CA5B-4B49-ACB7-94B8CD4EF502&displaylang=en
Bye,
Luca