Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一台机器,一切编译正常。在另一台机器上,当我使用 gcc 创建输出文件时,它会抱怨 -ly 选项。如果我删除 -ly 选项,那么它会生成程序,但它会以不同的方式运行。发生了什么。如何让程序在这台 linux 机器上正确运行?
你应该检查你是否有相同的 flex/bison 版本......
YACC 程序选项(和生成的输出)因操作系统而异。野牛可能更一致。