gpt4 book ai didi

iphone - 添加 .a 文件后体系结构 armv7 的 undefined symbol

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:04:40 25 4
gpt4 key购买 nike

我正在尝试使用从某个供应商处收到的 *.a、*.h 文件构建一个小型应用程序。这是我第一次将外部文件添加到项目中。

我添加了文件,但出现了这些错误。

Undefined symbols for architecture armv7:

"_vDSP_fft_zropD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_vclrD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_vdbconD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_vmulD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_hamm_windowD", referenced from: _fft_hr_init in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_zaspecD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_OBJC_CLASS_$_EAAccessoryManager", referenced from: objc-class-ref in libmyTrekSDK_armv7.a(hrMonitor.o) "_EAAccessoryDidDisconnectNotification", referenced from: -[HRMonitor startup] in libmyTrekSDK_armv7.a(hrMonitor.o) "_vDSP_create_fftsetupD", referenced from: _fft_hr_init in libmyTrekSDK_armv7.a(hr_calc.o) "_EAAccessoryDidConnectNotification", referenced from: -[HRMonitor startup] in libmyTrekSDK_armv7.a(hrMonitor.o) "_OBJC_CLASS_$_EASession", referenced from: objc-class-ref in libmyTrekSDK_armv7.a(hrMonitor.o) "_vDSP_ctozD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_maxmgvD", referenced from: _fft_hr_estimation in libmyTrekSDK_armv7.a(hr_calc.o) "_vDSP_destroy_fftsetupD", referenced from: _fft_hr_free in libmyTrekSDK_armv7.a(hr_calc.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

到目前为止我已经尝试过:(在其他帖子中提到)

  1. 我已确保 *.a 文件包含在 Link Binary With Library 中。
  2. 尝试将 C++ 语言方言和 C++ 标准库更改为编译器默认值。

更多信息:

  1. 文件位于项目文件夹中。
  2. 我使用的是 iPhone 4S v.6.1.3,项目的部署目标是 iOS 6.1。

最佳答案

为了将来,我得到了 "_OBJC_CLASS_$_EASession", referenced from: 错误。通过将 ExternalAccessory.framework 添加到 Targets > myApp > Build Phases > Link Binary with Libraries

修复了此问题

关于iphone - 添加 .a 文件后体系结构 armv7 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15682660/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com