ubuntu下编译libfaac 1.28遇到错误: mpeg4ip.h:126:58: error: new declaration ‘char*

来源:互联网 发布:淘宝店怎么刷人气 编辑:程序博客网 时间:2024/06/14 21:09

libfaac 1.28 compilation fails with: mpeg4ip.h:126:58: error: new declaration ‘char* strcasestr(const char*, const char*)’

refer to:http://lzone.de/libfaac%201.28%20compilation%20fails

用gcc编译libfaac1.28时,遇到如下错误:

g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o -MD -MP -MF .deps/3gp.Tpo -c -o 3gp.o 3gp.cpp
In file included from mp4common.h:29:0,
from 3gp.cpp:28:
mpeg4ip.h:126:58: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:369:28: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’
make[3]: *** [3gp.o] Error 1


解决办法:

去掉commom/mp4v2/mpeg4ip.h中126行有关strcasestr()的声明。

0 0
原创粉丝点击