首页 > Linux系统 > system > mpeg4ip.h:126: error: new declaration
2014
05-28

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
最后编辑:
作者:admin
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复