+ -
当前位置:首页 → 问答吧 → 关于flac的编译

关于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

作者: digwtx   发布时间: 2009-10-18

/usr/portage/media-libs/flac/files/flac-1.2.1-gcc-4.3-includes.patch

这就是发行版存在的价值

一个问题,不止你一个人会遇到

别人如果先于你遇到,就有可能在你遇到之前解决这个问题

所以用此发行版的人都会因此受益

所以没事不要自己编译,emerge就好,没有自己编译的必要

CFLAGS LDFLAGS都可以自己设定
还有ECONF_EXTRA

作者: zhllg   发布时间: 2009-10-18