mpeg4ip.h:126: error: new declaration

错误提示:

In file included from mp4common.h:29,
                 from 3gp.cpp:28:
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:367: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’
make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28'
make: *** [all] Error 2

解决此问题。

具体如下:
从123行开始修改此文件mpeg4ip.h,到129行结束。
修改前:

#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

修改后:

#ifdef __cplusplus
extern "C++" {
#endif
const char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
点赞