1. Q:implicit declaration of function问题
libavformat/http.c: In function `process_line':
libavformat/http.c:222:9: warning: array subscript has type `char'
libavformat/http.c:224:9: warning: array subscript has type `char'
libavformat/http.c:247:9: warning: array subscript has type `char'
libavformat/http.c:253:13: error: implicit declaration of function `atoll'
libavformat/http.c:264:9: error: implicit declaration of function `strncasecmp'
libavformat/http.c: In function `http_read':
libavformat/http.c:388:17: error: implicit declaration of function `strtoll'
A:
编译前,configure加(--extra-cflags='-U__STRICT_ANSI__ ')上参数如下
./configure --enable-shared

在Cygwin环境下编译ffmpeg时遇到了错误,包括configure阶段需要添加额外参数(--extra-cflags='-U__STRICT_ANSI__ ')以解决严格ANSI问题,以及编译过程中的float_t未定义问题。参考链接提供了相关解决方案。
最低0.47元/天 解锁文章
18万+

被折叠的 条评论
为什么被折叠?



