问题描述
当我使用 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
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)