lex yacc怎產生執行檔
发表于 : 2014-05-05 8:58
网络的资料东凑西凑的
不知还少什么东西?
终端机
sudo apt-get install flex bison
然后下载网络上的lex.l、yacc.y两个档案
再开终端机
编译出这两个的.c档
请问之后要产生执行档
是用什么指令?
cc lex.yy.c y.tab.c –ocpl
gcc lex.yy.c y.tab.c –ly –ll
这两个都出错不能用
error:-ocpl : No such file or directory
error --ly : No such file or directory
error -ll : No such file or directory
不知还少什么东西?
终端机
sudo apt-get install flex bison
然后下载网络上的lex.l、yacc.y两个档案
再开终端机
编译出这两个的.c档
请问之后要产生执行档
是用什么指令?
cc lex.yy.c y.tab.c –ocpl
gcc lex.yy.c y.tab.c –ly –ll
这两个都出错不能用
error:-ocpl : No such file or directory
error --ly : No such file or directory
error -ll : No such file or directory