关于flac的编译
时间:2009-10-18
来源:互联网
最近想自己编译下FLAC,但使用官方的源码 configure && make 时总是在下面所示的地方报错,不知道是什么原因,用slackware的slackbuild来编译也一样,但是用emerge flac却没看见报错,百思不得其解。望大虾指点。
main.cpp: In function ‘int main(int, char**)’:
main.cpp:75: 错误:‘memcmp’在此作用域中尚未声明
make[5]: *** [main.o] 错误 1
make[5]: Leaving directory `/tmp/flac-1.2.1/examples/cpp/encode/file'
make[4]: *** [all-recursive] 错误 1
make[4]: Leaving directory `/tmp/flac-1.2.1/examples/cpp/encode'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/tmp/flac-1.2.1/examples/cpp'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/tmp/flac-1.2.1/examples'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/flac-1.2.1'
make: *** [all] 错误 2
main.cpp: In function ‘int main(int, char**)’:
main.cpp:75: 错误:‘memcmp’在此作用域中尚未声明
make[5]: *** [main.o] 错误 1
make[5]: Leaving directory `/tmp/flac-1.2.1/examples/cpp/encode/file'
make[4]: *** [all-recursive] 错误 1
make[4]: Leaving directory `/tmp/flac-1.2.1/examples/cpp/encode'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/tmp/flac-1.2.1/examples/cpp'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/tmp/flac-1.2.1/examples'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/flac-1.2.1'
make: *** [all] 错误 2
作者: digwtx 发布时间: 2009-10-18
/usr/portage/media-libs/flac/files/flac-1.2.1-gcc-4.3-includes.patch
这就是发行版存在的价值
一个问题,不止你一个人会遇到
别人如果先于你遇到,就有可能在你遇到之前解决这个问题
所以用此发行版的人都会因此受益
所以没事不要自己编译,emerge就好,没有自己编译的必要
CFLAGS LDFLAGS都可以自己设定
还有ECONF_EXTRA
这就是发行版存在的价值
一个问题,不止你一个人会遇到
别人如果先于你遇到,就有可能在你遇到之前解决这个问题
所以用此发行版的人都会因此受益
所以没事不要自己编译,emerge就好,没有自己编译的必要
CFLAGS LDFLAGS都可以自己设定
还有ECONF_EXTRA
作者: zhllg 发布时间: 2009-10-18
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28