存档存在问题,该存档不是C中链接的体系结构(x86_64)

Issue with archive which is not the architecture being linked (x86_64) in C

本文关键字:体系结构 链接 x86 问题 存在      更新时间:2023-10-16

当我在我试图构建的这个程序上运行make时,我会收到以下警告:

ld: warning: ignoring file ../lib/libiptools.a, file was built for archive which is not the architecture being linked (x86_64)
ld: warning: ignoring file ../lib/libmpeg.a, file was built for archive which is not the architecture being linked (x86_64)

然后它显然无法使用以下代码进行编译:

ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [iptool] Error 1

我只是很难弄清楚如何修改我的make文件并为此进行正确编译,因为我不熟悉档案。任何建议都很感激,因为我确信我错过了一些简单的东西。我正在使用Mac OS X Mountain Lion。

libiptools.a和libmpeg.a是为32位编译的,但项目的其余部分是为64位编译的。找到这些库的64位版本,或者编译为32位版本。

相关文章: