1

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

4

1 回答 1

0

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

于 2013-06-09T09:10:06.903 回答