mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’

来源:互联网 发布:济南行知小学怎么样 编辑:程序博客网 时间:2024/06/07 22:05

编译FAAC-1.28时遇到错误:

mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’

解决方法:

从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

阅读全文
0 0
原创粉丝点击