开发者

My flex/yacc program compiles differently on two different linux machines

开发者 https://www.devze.com 2022-12-12 06:37 出处:网络
One one machine, everything compiles fine.On another machine, it complai开发者_运维百科ns about the -ly option when I use gcc to create the output file.If I remove the -ly option, then it makes the pr

One one machine, everything compiles fine. On another machine, it complai开发者_运维百科ns about the -ly option when I use gcc to create the output file. If I remove the -ly option, then it makes the program, but then it runs differently. What's happening. How can I get the program to run correctly on this linux machine?


You should check to see if you have the same flex/bison versions...


YACC program options (and generated output) vary from OS to OS. Bison might be more consistent.

0

精彩评论

暂无评论...
验证码 换一张
取 消