win32thread.c:(.text+0x60):对‘_beginthreadex’未定义的引用

win32thread.c:(.text+0x60):对‘_beginthreadex’未定义的引用

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

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/80342348