Windows无法找到win_bison.exe [英] Windows cannot find win_bison.exe

查看:185
本文介绍了Windows无法找到win_bison.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio 2013中使用flex和bison,但是我遇到了问题.
我已经从此处下载了win_flex_bison,然后是添加到环境变量中,但是当我正在尝试构建项目,但出现Windows无法找到win_bison.exe的错误消息

I'm trying to get to work with flex and bison in Visual Studio 2013, but I have a problem.
I've downloaded win_flex_bison from here, followed this tutorial and added "C:\GnuWin32\win_flex_bison;" to environmental variables, but when I'm trying to build the project I'm getting error that Windows cannot find win_bison.exe

"Error  1   error MSB3721: The command "start /B /WAIT /D "D:\\...\" 
 win_bison.exe --output="sample.tab.cpp" --defines="sample.tab.h" "sample.y"
  " exited with code 1.
C:\GnuWin32\win_flex_bison\custom_build_rules\win_flex_bison_custom_build.targets   55 5 kompilator

在控制台中,win_bison和win_flex可以正常工作.我该怎么办?

推荐答案

该命令的/D参数有误:

Something wrong with the /D parameter of the command:

/D "D:\\...\"

它是从

/D "%(RootDir)%(Directory)"

您应检查项目中的%(RootDir)和%(Directory)宏变量

You should check %(RootDir) and %(Directory) macro-variables in your project

这篇关于Windows无法找到win_bison.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆