c - 当我编译 x264 时,出现错误 undefined reference to sync_fetch_and_add_4

标签 c mingw x264

我在 Windows 7(64 位)上使用 mingw 和 msys 来编译 x264。 以下是显示的错误: libx264.a(frame.o):frame.c:(.text+0x2c2d): 对`__sync_fetch_ 的 undefined reference and_add_4' collect2.exe: 错误:ld reutrn 1 Makefile:182: 目标 'x264.exe' 的配方失败 make: * [x264.exe] 错误 1

最佳答案

你的 mingw/gcc 版本是多少? __sync_fetch_and_add 是 4.0 版 afaik 的内置 gcc 函数。可能与此有关:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671 无论如何尝试更新你的 gcc。

关于c - 当我编译 x264 时,出现错误 undefined reference to sync_fetch_and_add_4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16988239/

相关文章:

c++ - GCC 相当于 MS/bigobj

windows - 如何在 Windows 中使用 pip+mingw 安装 numpy?

c - 为什么它总是说 "undefined reference"?

c++ - 如何编写 Live555 FramedSource 以允许我直播 H.264

iphone - 加速 x264 编码

c - 语法和指针运算

c - 使用 readdir_r 读取目录

c - 在 C 中打印结构字段和值

c - VS17 SSH Linux unistd.h

ffmpeg-mp4box-mpeg dash 只播放几个片段