windows10 编译x264出现 undefined reference to `_beginthreadex'解决

来源:互联网 发布:g900 支持 mac 编辑:程序博客网 时间:2024/06/05 17:10

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 statusMakefile:192: recipe for target 'libx264-148.dll' failedmake: *** [libx264-148.dll] Error 1


解决办法:

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

阅读全文
0 0
原创粉丝点击