在带有 M1 芯片的 Xcode 12.4 上构建 C++ 项目出错:链接库 libntl.a 缺少此目标所需的一个或多个架构:x86_64

问题描述

当我使用 M1 Chip Mac 在 Xcode 12.4 上构建 C++ 项目时,对于链接的 NTL 库 (libntl.a),出现错误: // resolves in 500 ms const fn = async () => { await new Promise((res) => setTimeout(res,500)); return "p2"; } // finishes before the timeout const result = await timeout(fn(),1000); // result = p2 // timeouts in 100 ms await timeout(fn(),100); // error

对这个问题有什么建议吗?我曾尝试修改 the linked library libntl.a is missing one or more architectures required by this target: x86_64 中的架构变量,但没有成功。

Picture: Settings-Architectures

Picture: Settings-Search Paths

Picture: Link Libraries

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...