Home > Archive > Compilers > March 2007 > plz help me
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| eng.sharif@gmail.com 2007-02-27, 4:23 am |
| i 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
plz help me
[Any Windows users who can help this guy out? -John]
| |
|
| <eng.sharif@gmail.com> wrote in message news:07-02-076@comp.compilers...
>i 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
>
> plz help me
> [Any Windows users who can help this guy out? -John]
Hi,
Have you added the build rules to your project ? Open the property page for
the .y file in your project
and click on 'Custom build Step' node in the tree view . Enter
C:\...\bison -options example.y in 'Command Line', where
... is the path to bison.exe. You can put bison.exe and flex.exe
anywhere you like, as long as you specify the
path to the executables in the command line. You also need to specify the
output file in 'Outputs'. Bison will in your case
generate the files example.tab.c and example.tab.h unless you use the '-o
file-prefix' or '-d file-prefix' option.
| |
| Aaron Gray 2007-03-01, 4:19 am |
| Get the GnuWin32 flex and bison packages if you do not allready have them :-
http://gnuwin32.sourceforge.net/
If bison.simple is not there then get it from the GNU Bison distribution.
Aaron
<eng.sharif@gmail.com> wrote in message news:07-02-076@comp.compilers...
>i 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 "
| |
| Hans Aberg 2007-03-11, 7:13 pm |
| "Aaron Gray" <ang.usenet@gmail.com> wrote:
> Get the GnuWin32 flex and bison packages if you do not allready have them :-
>
> http://gnuwin32.sourceforge.net/
>
> If bison.simple is not there then get it from the GNU Bison distribution.
It was a long time ago Bison used bison.simple. Nowadays, these are
written using M4. Don't mix different version_skeleton files and Bison
programs. I don't know what_Bison versions are available on Windows OS,
but at least 2.0, I think. Latest Bison is 2.3 or so.
--
Hans Aberg
| |
|
|
|
|
|