时间
2017-04-11
描述
编译安装libmad-0.15.1b.tar.gz(20040216发布)的时候出现下面的错误:
unrecognized command line option “-fforce-mem”
原因
gcc 3.4 或者更高版本,已经将“-fforce-mem”去除,所以会出现上面的错误!
解决
找到相关Makefile
vi Makefile
找到包含”-fforce-mem”字符串,将其删除
参考
Compiling libmad with gcc 3.4 or higher will produce the following error: cc1: error: unrecognized command line option “-fforce-mem”. The build option “-fforce-mem” has been kicked out of gcc, so you need to alter the makefile (just vi Makefile after you have configured, hit “/” to search for the entry and delete it)

本文介绍了在使用gcc 3.4及以上版本编译libmad-0.15.1b时遇到的“-fforce-mem”选项错误,并提供了解决方案。需要在Makefile中删除该选项。
2340

被折叠的 条评论
为什么被折叠?



