您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

全网首发:编译ffmpeg:error: implicit declaration of function ‘wcsdup‘; did you mean ‘wcscmp‘?

柳鲲鹏 发布时间:2022-10-13 13:14:16 ,浏览量:0

  • 具体错误
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 *);

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.9477s