我是靠谱客的博主 靓丽羊,这篇文章主要介绍windows10 编译x264出现 undefined reference to `_beginthreadex'解决,现在分享给大家,希望可以做个参考。

windows10 用msys2 编译x264出现如下问题

common/win32thread.o:win32thread.c:(.text+0x60): undefined reference to `_beginthreadex'
common/win32thread.o:win32thread.c:(.text+0x60): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_beginthreadex'
collect2: error: ld returned 1 exit status
Makefile:192: recipe for target 'libx264-148.dll' failed
make: *** [libx264-148.dll] Error 1


解决办法:

./configure --enable-shared --enable-static --disable-thread
关键是最后一个--disable-thread

最后

以上就是靓丽羊最近收集整理的关于windows10 编译x264出现 undefined reference to `_beginthreadex'解决的全部内容,更多相关windows10内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(99)

评论列表共有 0 条评论

立即
投稿
返回
顶部