HomeForumsOpenEarsproject fails on linking

This topic has 2 voices, contains 6 replies, and was last updated by  Halle 167 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
December 2, 2011 at 10:16 pm #8214

rasman

First off, thanks for the great work
I’ve been able to build and run a small project (other then the demo) with OpenEars, and it performs well.

Unfortunately, when I tried to incorporate some of this work into my main project, it cannot link certain elements (it compiles OK).
As a point of reference, before incorporation OpenEars, my project used Core-Plot, the accelerometer, audio, vibration, and the GNU Scientific library with some custom code, and I use a few linker flags including the dreaded “all_load” (needed for Core-plot). FTR, I’m using the latest revision of openEars (0.912).

Below is the complete error transcript when building for an iPad:

Ld “/Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos/Infusion App.app/Infusion App” normal armv7
cd “/Users/user/Xcode/Mains/Infusion App”
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH “/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos -L/usr/local/lib “-L/Users/user/Xcode/Mains/Infusion App” “-L/Users/user/Xcode/Mains/Infusion App/../../CorePlot_0.9/Binaries/iOS” “-L/Users/user/Xcode/Mains/Infusion App/../../../Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos” -F/Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos -filelist “/Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Intermediates/Infusion App.build/Debug-iphoneos/Infusion App.build/Objects-normal/armv7/Infusion App.LinkFileList” -dead_strip -ObjC -lgsl -lgslcblas -all_load -miphoneos-version-min=5.0 /Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos/libOpenEarsLibrary.a -liconv.2.4.0 -framework AVFoundation -lCorePlot-CocoaTouch -framework QuartzCore -framework AudioToolbox -framework UIKit -framework Foundation -framework CoreGraphics -o “/Users/user/Library/Developer/Xcode/DerivedData/Infusion_App-beokknahgehfhmdladigxnhqefoc/Build/Products/Debug-iphoneos/Infusion App.app/Infusion App”

Undefined symbols for architecture armv7:
“___cxa_rethrow”, referenced from:
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE6resizeEm in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE11_M_new_nodeERKS3_ in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIP11DenseVectorIiEmS1_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIPSt6vectorI11DenseVectorIdESaIS2_EEmS4_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt24__uninitialized_copy_auxIN9__gnu_cxx17__normal_iteratorIPK11DenseVectorIdESt6vectorIS3_SaIS3_EEEEPS3_ET0_T_SC_SB_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt6vectorIS_I11DenseVectorIdESaIS1_EESaIS3_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS3_S5_EEmRKS3_ in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorI11DenseVectorIdESaIS1_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEEEPS1_mT_SB_ in libOpenEarsLibrary.a(interpolate-ngram.o)

“___cxa_free_exception”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadUInt64P7__sFILE in libOpenEarsLibrary.a(estimate-ngram.o)

“__Znwm”, referenced from:
__ZN9__gnu_cxx13new_allocatorINS_15_Hashtable_nodeISt4pairIKmiEEEE8allocateEmPKv in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorIPNS_15_Hashtable_nodeISt4pairIKmiEEEE8allocateEmPKv in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorI11DenseVectorIiEE8allocateEmPKv in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorI11DenseVectorIdEE8allocateEmPKv in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorISt6vectorI11DenseVectorIdESaIS3_EEE8allocateEmPKv in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorISsE8allocateEmPKv in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZN9__gnu_cxx13new_allocatorI9SharedPtrI4MaskEE8allocateEmPKv in libOpenEarsLibrary.a(InterpolatedNgramLM.o)

“__ZNSsC1EPKcmRKSaIcE”, referenced from:
__Z10trim_splitRSt6vectorISsSaISsEEPKcc in libOpenEarsLibrary.a(CommandOptions.o)
“___cxa_begin_catch”, referenced from:
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE6resizeEm in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE11_M_new_nodeERKS3_ in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIP11DenseVectorIiEmS1_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIPSt6vectorI11DenseVectorIdESaIS2_EEmS4_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt24__uninitialized_copy_auxIN9__gnu_cxx17__normal_iteratorIPK11DenseVectorIdESt6vectorIS3_SaIS3_EEEEPS3_ET0_T_SC_SB_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt6vectorIS_I11DenseVectorIdESaIS1_EESaIS3_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS3_S5_EEmRKS3_ in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorI11DenseVectorIdESaIS1_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEEEPS1_mT_SB_ in libOpenEarsLibrary.a(interpolate-ngram.o)

“__ZSt20__throw_length_errorPKc”, referenced from:
__ZNSt6vectorIS_I11DenseVectorIdESaIS1_EESaIS3_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS3_S5_EEmRKS3_ in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorI9SharedPtrI4MaskESaIS2_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS2_S4_EEmRKS2_ in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZNSt6vectorI11DenseVectorIdESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEmRKS1_ in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZNSt6vectorIiSaIiEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPiS1_EERKi in libOpenEarsLibrary.a(Lattice.o)
__ZNSt6vectorI10OraclePathSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_ in libOpenEarsLibrary.a(Lattice.o)
__ZNSt6vectorIN7Lattice13ArcNgramIndexESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_ in libOpenEarsLibrary.a(Lattice.o)

“__ZTVN10__cxxabiv117__class_type_infoE”, referenced from:
__ZTI6VectorI11DenseVectorI9OffsetLenEE in libOpenEarsLibrary.a(estimate-ngram.o)
__ZTI6VectorI11DenseVectorIdEE in libOpenEarsLibrary.a(evaluate-ngram.o)
__ZTI6VectorI11DenseVectorIiEE in libOpenEarsLibrary.a(evaluate-ngram.o)
__ZTI6VectorI11DenseVectorIhEE in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZTI6VectorI18UnaryVectorClosureI7OpIsNan11DenseVectorIdEEE in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZTI6VectorI13VectorBuilderIdEE in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZTI6VectorI21IndirectVectorClosureI11DenseVectorIiES2_EE in libOpenEarsLibrary.a(InterpolatedNgramLM.o)

NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
“__ZNSaIcEC1Ev”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadUInt64P7__sFILE in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZNKSs5rfindEcm”, referenced from:
__ZNK10NgramModel20LoadComputedFeaturesERSt6vectorI11DenseVectorIdESaIS2_EEPKcm in libOpenEarsLibrary.a(NgramModel.o)
“__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_”, referenced from:
__ZN19PerplexityOptimizer14ComputeEntropyERK11DenseVectorIdE in libOpenEarsLibrary.a(PerplexityOptimizer.o)
__ZN22WordErrorRateOptimizer10ComputeWERERK11DenseVectorIdE in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
__ZN22WordErrorRateOptimizer13ComputeMarginERK11DenseVectorIdE in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
__Z9this_mainiPPc in libOpenEarsLibrary.a(MITLMModel.o)
“__ZdlPv”, referenced from:
__ZN9__gnu_cxx13new_allocatorISsE10deallocateEPSsm in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorINS_15_Hashtable_nodeISt4pairIKmiEEEE10deallocateEPS5_m in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorIPNS_15_Hashtable_nodeISt4pairIKmiEEEE10deallocateEPS6_m in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN11DenseVectorIdED0Ev in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN6VectorI11DenseVectorIdEED0Ev in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx13new_allocatorI11DenseVectorIiEE10deallocateEPS2_m in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN11DenseVectorIiED0Ev in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZNKSs8capacityEv”, referenced from:
__ZN5Vocab11DeserializeEP7__sFILE in libOpenEarsLibrary.a(Vocab.o)
“__ZNSt16invalid_argumentC1ERKSs”, referenced from:
__ZN7Lattice11LoadLatticeER5ZFile in libOpenEarsLibrary.a(Lattice.o)
__ZN10NgramModel10LoadCorpusERSt6vectorI11DenseVectorIiESaIS2_EER5ZFileb in libOpenEarsLibrary.a(NgramModel.o)
__ZN10NgramModel10LoadCountsERSt6vectorI11DenseVectorIiESaIS2_EER5ZFileb in libOpenEarsLibrary.a(NgramModel.o)
__ZNK10NgramModel10SaveCountsERKSt6vectorI11DenseVectorIiESaIS2_EER5ZFileb in libOpenEarsLibrary.a(NgramModel.o)
__ZNK10NgramModel6SaveLMERKSt6vectorI11DenseVectorIdESaIS2_EES6_R5ZFile in libOpenEarsLibrary.a(NgramModel.o)
__ZNK10NgramModel14LoadEvalCorpusERSt6vectorI11DenseVectorIiESaIS2_EES5_RS1_IhER5ZFileRmSA_ in libOpenEarsLibrary.a(NgramModel.o)
__ZNK10NgramModel12LoadFeaturesERSt6vectorI11DenseVectorIdESaIS2_EER5ZFilem in libOpenEarsLibrary.a(NgramModel.o)

“__ZTISt11logic_error”, referenced from:
__ZTISt16invalid_argument in libOpenEarsLibrary.a(Lattice.o)
“__ZNKSs6substrEmm”, referenced from:
__Z11GetBasenameSs in libOpenEarsLibrary.a(interpolate-ngram.o)
“__ZNSt8ios_base4InitD1Ev”, referenced from:
___cxx_global_var_init in libOpenEarsLibrary.a(estimate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(evaluate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(interpolate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
___cxx_global_var_init in libOpenEarsLibrary.a(KneserNeySmoothing.o)
___cxx_global_var_init in libOpenEarsLibrary.a(Lattice.o)
___cxx_global_var_init in libOpenEarsLibrary.a(MaxLikelihoodSmoothing.o)

“__ZNSolsEPFRSoS_E”, referenced from:
__ZN19PerplexityOptimizer14ComputeEntropyERK11DenseVectorIdE in libOpenEarsLibrary.a(PerplexityOptimizer.o)
__ZN22WordErrorRateOptimizer10ComputeWERERK11DenseVectorIdE in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
__ZN22WordErrorRateOptimizer13ComputeMarginERK11DenseVectorIdE in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
__Z9this_mainiPPc in libOpenEarsLibrary.a(MITLMModel.o)
“__ZNKSsixEm”, referenced from:
__ZNK5VocabixEi in libOpenEarsLibrary.a(Lattice.o)
__ZNK5Vocab9SaveVocabER5ZFileb in libOpenEarsLibrary.a(Vocab.o)
“__ZNSs6appendEPKc”, referenced from:
__ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_PKS3_ in libOpenEarsLibrary.a(CommandOptions.o)
“__ZNSsaSEPKc”, referenced from:
__ZN5ZFileC2EPKcS1_ in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN7NgramLM10InitializeEPKcbS1_S1_S1_S1_ in libOpenEarsLibrary.a(NgramLM.o)
__ZN14CommandOptionsC2EPKcS1_ in libOpenEarsLibrary.a(CommandOptions.o)
__ZN7Lattice6SetTagEPKc in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
“___cxa_throw”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadUInt64P7__sFILE in libOpenEarsLibrary.a(estimate-ngram.o)

“___cxa_end_catch”, referenced from:
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE6resizeEm in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE11_M_new_nodeERKS3_ in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIP11DenseVectorIiEmS1_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt26__uninitialized_fill_n_auxIPSt6vectorI11DenseVectorIdESaIS2_EEmS4_EvT_T0_RKT1_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt24__uninitialized_copy_auxIN9__gnu_cxx17__normal_iteratorIPK11DenseVectorIdESt6vectorIS3_SaIS3_EEEEPS3_ET0_T_SC_SB_St12__false_type in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt6vectorIS_I11DenseVectorIdESaIS1_EESaIS3_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS3_S5_EEmRKS3_ in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorI11DenseVectorIdESaIS1_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS1_S3_EEEEPS1_mT_SB_ in libOpenEarsLibrary.a(interpolate-ngram.o)

“__ZNKSs7compareERKSs”, referenced from:
__ZSteqIcSt11char_traitsIcESaIcEEbRKSbIT_T0_T1_ES8_ in libOpenEarsLibrary.a(CommandOptions.o)
“__ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKSbIS4_S5_T1_E”, referenced from:
__ZNK14CommandOptions9PrintHelpEv in libOpenEarsLibrary.a(CommandOptions.o)
“__ZNSsC1ERKSs”, referenced from:
__ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_S8_ in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11GetBasenameSs in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZSt10_ConstructISsSsEvPT_RKT0_ in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZN9__gnu_cxx13new_allocatorISsE9constructEPSsRKSs in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZN7NgramLM10InitializeEPKcbS1_S1_S1_S1_ in libOpenEarsLibrary.a(NgramLM.o)
__ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_PKS3_ in libOpenEarsLibrary.a(CommandOptions.o)

“__ZTVN10__cxxabiv120__si_class_type_infoE”, referenced from:
__ZTI11DenseVectorI9OffsetLenE in libOpenEarsLibrary.a(estimate-ngram.o)
__ZTI11DenseVectorIdE in libOpenEarsLibrary.a(evaluate-ngram.o)
__ZTI11DenseVectorIiE in libOpenEarsLibrary.a(evaluate-ngram.o)
__ZTI11DenseVectorIhE in libOpenEarsLibrary.a(interpolate-ngram.o)
__ZTI18UnaryVectorClosureI7OpIsNan11DenseVectorIdEE in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZTI13VectorBuilderIdE in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
__ZTI21IndirectVectorClosureI11DenseVectorIiES1_E in libOpenEarsLibrary.a(InterpolatedNgramLM.o)

NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
“___cxa_pure_virtual”, referenced from:
__ZTV9Smoothing in libOpenEarsLibrary.a(MaxLikelihoodSmoothing.o)
“__ZNSt11logic_errorD2Ev”, referenced from:
__ZNSt16invalid_argumentD2Ev in libOpenEarsLibrary.a(Lattice.o)
“__ZSt9terminatev”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt6vectorISsSaISsEED2Ev in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE6resizeEm in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE11_M_new_nodeERKS3_ in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZTISt13runtime_error”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadUInt64P7__sFILE in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZNSsD1Ev”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__ZSt8_DestroyISsEvPT_ in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc”, referenced from:
__ZN19PerplexityOptimizer14ComputeEntropyERK11DenseVectorIdE in libOpenEarsLibrary.a(PerplexityOptimizer.o)
__ZlsIdERSoS0_RK11DenseVectorIT_E in libOpenEarsLibrary.a(PerplexityOptimizer.o)
__ZN14CommandOptions14ParseArgumentsEiPPKc in libOpenEarsLibrary.a(CommandOptions.o)
__ZNK14CommandOptions9PrintHelpEv in libOpenEarsLibrary.a(CommandOptions.o)
__ZN22WordErrorRateOptimizer13ComputeMarginERK11DenseVectorIdE in libOpenEarsLibrary.a(WordErrorRateOptimizer.o)
“__ZNKSs4dataEv”, referenced from:
__ZNK10NgramModel6SaveLMERKSt6vectorI11DenseVectorIdESaIS2_EES6_R5ZFile in libOpenEarsLibrary.a(NgramModel.o)
“__ZNSs6appendERKSs”, referenced from:
__ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_S8_ in libOpenEarsLibrary.a(estimate-ngram.o)
“___cxa_allocate_exception”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadUInt64P7__sFILE in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZNSt8ios_base4InitC1Ev”, referenced from:
___cxx_global_var_init in libOpenEarsLibrary.a(estimate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(evaluate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(interpolate-ngram.o)
___cxx_global_var_init in libOpenEarsLibrary.a(InterpolatedNgramLM.o)
___cxx_global_var_init in libOpenEarsLibrary.a(KneserNeySmoothing.o)
___cxx_global_var_init in libOpenEarsLibrary.a(Lattice.o)
___cxx_global_var_init in libOpenEarsLibrary.a(MaxLikelihoodSmoothing.o)

“___gxx_personality_sj0″, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt6vectorISsSaISsEED2Ev in libOpenEarsLibrary.a(estimate-ngram.o)
__ZNSt12_Vector_baseISsSaISsEED2Ev in libOpenEarsLibrary.a(estimate-ngram.o)
__ZN9__gnu_cxx9hashtableISt4pairIKmiEmNS_4hashImEESt10_Select1stIS3_ESt8equal_toImESaIiEE14_M_delete_nodeEPNS_15_Hashtable_nodeIS3_EE in libOpenEarsLibrary.a(estimate-ngram.o)

“__ZSt4cerr”, referenced from:
__ZN14CommandOptions14ParseArgumentsEiPPKc in libOpenEarsLibrary.a(CommandOptions.o)
“__ZNSsC1EPKcRKSaIcE”, referenced from:
__Z12VerifyHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z10ReadVectorIdEvP7__sFILER11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteHeaderP7__sFILEPKc in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteVectorIdEvP7__sFILERK11DenseVectorIT_E in libOpenEarsLibrary.a(estimate-ngram.o)
__Z11WriteUInt64P7__sFILEy in libOpenEarsLibrary.a(estimate-ngram.o)
__Z13WriteAlignPadP7__sFILEm in libOpenEarsLibrary.a(estimate-ngram.o)
“__ZNSs6appendEPKcm”, referenced from:
“__ZNSsixEm”, referenced from:
“__ZNSsaSERKSs”, referenced from:
“__ZNKSs4sizeEv”, referenced from:
“__ZNSaIcED1Ev”, referenced from:
“__ZSt17__throw_bad_allocv”, referenced from:
“__ZNKSs6lengthEv”, referenced from:
“__ZNSs4swapERSs”, referenced from:
“__ZNKSs12find_last_ofEcm”, referenced from:
“__ZNSs7reserveEm”, referenced from:
“__ZNKSs5c_strEv”, referenced from:
“__ZNSsC1Ev”, referenced from:
“__ZNSs6resizeEm”, referenced from:
“__ZNSt13runtime_errorD1Ev”, referenced from:
“__ZNSolsEd”, referenced from:
“__ZNSt13runtime_errorC1ERKSs”, referenced from:
“__ZSt4cout”, referenced from:
Showing first 200 notices only

_________

Any idea what’s going on?
thanks

December 2, 2011 at 10:41 pm #8215

Halle

Hi,

I think you may have overlooked step 7 on this page:

http://www.politepix.com/openears/configuring

December 2, 2011 at 10:52 pm #8216

rasman

Right now, I’m keeping it as basic as possbile: all I’m doing is using AudioSessionManager in my app delegate, which doesn’t require Objective-C++ (right?).

December 2, 2011 at 10:58 pm #8217

rasman

ok, so I changed my app delegate from m to mm, and it seems to have fixed the problem, this despite the fact that all I’m using is AudioSessionManager. A similar test app (which didn’t have any of my libraries and linker flags) didn’t have this problem.

I’ll get back to you if anything else come up

December 2, 2011 at 11:16 pm #8218

Halle

AudioSessionManager definitely doesn’t require .mm, but your use of all_load could be causing a requirement that any class linking to the library use Objective-C++.

December 3, 2011 at 12:00 am #8219

rasman

After doing a bit more homework I found this:

http://developer.apple.com/library/mac/#qa/qa1490/_index.html

I guess you’re right in that all_load may force the need to use .mm extension when referencing elements of your library. You may want to update “step 7″ to reflect that

December 3, 2011 at 12:19 am #8220

Halle

Once I’ve had a chance to verify this I can add a note to the all_load section of the FAQ that all_load requires .mm to be used with AudioSessionManager.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.