全网首发:编译ffmpeg:error: implicit declaration of function ‘wcsdup‘; did you mean ‘wcscmp‘?
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了全网首发:编译ffmpeg:error: implicit declaration of function ‘wcsdup‘; did you mean ‘wcscmp‘?相关的知识,希望对你有一定的参考价值。
- 具体错误
libavdevice/dshow_pin.c:135:11: error: implicit declaration of function 'wcsdup'; did you mean 'wcscmp'? [-Werror=implicit-function-declaration]
*id = wcsdup(L"libAV Pin");
^~~~~~
wcscmp
- 解决办法
打开/usr/include/wchar.h,搜索wcscpy,可以发现wcsdup在另外一个#if中定义。将其复制过来即可。大体变成:
wchar_t *wcscpy (wchar_t *__restrict, const wchar_t *__restrict);
//新加的
wchar_t *wcsdup (const wchar_t *);
以上是关于全网首发:编译ffmpeg:error: implicit declaration of function ‘wcsdup‘; did you mean ‘wcscmp‘?的主要内容,如果未能解决你的问题,请参考以下文章
全网首发:FFMPEG错误: error: implicit declaration of function ‘wcscpy‘/wcscmp; did you mean ‘strcpy‘strcmp?
全网首发:编译jna:dispatch.h:30:34: fatal error: com_sun_jna_Function.h: 没有那个文件或目录
全网首发:configure: error: cannot guess build type; you must specify one