2013-03-28 143 views
3

我正在嘗試使用從某個供應商處收到的* .a,* .h文件構建一個小型應用程序。 這是我第一次將外部文件添加到項目中。添加.a文件後架構armv7的未定義符號

我添加了文件,我收到這些錯誤。

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. 我做了肯定的*某文件包括在鏈接的二進制,庫英寸
  2. 試圖將C++語言方言和C++標準庫更改爲編譯器默認值。

更多信息:

  1. 的文件是在項目文件夾。
  2. 我正在使用iPhone 4S v.6.1.3,項目的部署目標是iOS 6.1。
+1

來修復的。您正在鏈接到libmyTrekSDK_armv7.a的.a文件嗎?如果是這樣,它看起來還有另一個它需要它之前(也許Accelerate.framework)...也嘗試鏈接ExternalAccessory.framework – jjv360

+0

@ jjv360你剛剛救了我的一天! – Brian

回答

1

只是爲了將來,我得到了"_OBJC_CLASS_$_EASession", referenced from:錯誤。它是通過將ExternalAccessory.framework添加到Targets > myApp > Build Phases > Link Binary with Libraries

相關問題