Windows cannot find win_bison.exe

北战南征 提交于 2019-12-11 10:13:38

问题


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

In the console win_bison and win_flex works fine. What I have to do?


回答1:


Something wrong with the /D parameter of the command:

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

It's expanded from

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

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



来源:https://stackoverflow.com/questions/23870427/windows-cannot-find-win-bison-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!