want use bison and flex in visual stdio 2005 for make small
compiler by use Custom Build Rules in Visual C++ 2005
"FlexBison.rules
file "

but when i compile "example.y" i get error
---------------------------------------------------------------------------=
=AD---------------
bison.simple: No such file or directory
bison: Project : error PRJ0019: A tool returned an error code from
bison
Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS
\system32\cmd.exe'.
Build log was saved at "file://c:\Documents and Settings
\sharif.SYNRYU
\My Documents\Visual Studio 2005\Projects\example\example\Debug
\BuildLog.htm"
example - 1 error(s), 0 warning(s)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded, 1 failed, 0 up-to-date, =
0 skipped
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
---------------------------------------------------------------------------=
=AD-----------------------
my question is where i will put "bison.exe , bison.simple ,
flex.exe"
files for use in cv++ 2005


plz help me

Re: bison and flex in visual stdio 2005 by Brian

Brian
Tue Feb 27 06:16:03 CST 2007


<eng.sharif@gmail.com> wrote in message
news:1172565056.707372.303670@z35g2000cwz.googlegroups.com...
want use bison and flex in visual stdio 2005 for make small
compiler by use Custom Build Rules in Visual C++ 2005
"FlexBison.rules
file "

but when i compile "example.y" i get error
---------------------------------------------------------------------------­---------------
bison.simple: No such file or directory
bison: Project : error PRJ0019: A tool returned an error code from
bison
Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS
\system32\cmd.exe'.
Build log was saved at "file://c:\Documents and Settings
\sharif.SYNRYU
\My Documents\Visual Studio 2005\Projects\example\example\Debug
\BuildLog.htm"
example - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
---------------------------------------------------------------------------­-----------------------
my question is where i will put "bison.exe , bison.simple ,
flex.exe" files for use in cv++ 2005

There are several ways of solving this sort of problem.

1. You can put your exe files in one of the directories where VC++ expects
to find them. For example:

C:\Program Files\Microsoft Visual Studio 8\VC\bin

2. You can put the full path to your exe file in your rules file.

3. You can add the directory where your bison executable files are to the
VC++ executable directories list. This is under the

Tools|Options|Projects & Solutions|VC++ Directories|

menu item.

Brian Gladman