全网首发:FFMPEG错误: error: implicit declaration of function ‘wcscpy‘/wcscmp; did you mean ‘strcpy‘strcmp?

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全网首发:FFMPEG错误: error: implicit declaration of function ‘wcscpy‘/wcscmp; did you mean ‘strcpy‘strcmp?相关的知识,希望对你有一定的参考价值。

具体错误:

libavdevice/dshow_filter.c:109:10: error: implicit declaration of function 'wcscmp'; did you mean 'strcmp'? [-Werror=implicit-function-declaration]
     if (!wcscmp(id, L"In")) 
          ^~~~~~
          strcmp

libavdevice/dshow_filter.c:115:16: note: each undeclared identifier is reported only once for each function it appears in
libavdevice/dshow_filter.c: In function 'ff_dshow_filter_JoinFilterGraph':
libavdevice/dshow_filter.c:138:9: error: implicit declaration of function 'wcscpy'; did you mean 'strcpy'? [-Werror=implicit-function-declaration]
         wcscpy(this->info.achName, name);
         ^~~~~~
         strcpy

解决办法:

打开libavdevice/dshow_filter.c,在头部加入:

#include <wchar.h>

以上是关于全网首发:FFMPEG错误: error: implicit declaration of function ‘wcscpy‘/wcscmp; did you mean ‘strcpy‘strcmp?的主要内容,如果未能解决你的问题,请参考以下文章

全网首发:编译ffmpeg: error: ‘VFW_E_NOT_FOUND‘ undeclared ; did you mean ‘NTE_NOT_FOUND‘?

全网首发:configure: error: cannot guess build type; you must specify one

vs2015编译ffmpeg 出现错误rtmp.lib(rtmp.obj) : error LNK2001: 无法解析的外部符号 ___iob_func

全网首发:No package ‘usbutils‘ found

全网首发:No package ‘usbutils‘ found

全网首发:编译jna:dispatch.h:30:34: fatal error: com_sun_jna_Function.h: 没有那个文件或目录