Undefined symbols for architecture i386:
"_d_open_dev", referenced from:
- in iPhoneCMUViewController.o
"_cont_ad_init", referenced from:
- in iPhoneCMUViewController.o
"_ad_start_rec", referenced from:
- in iPhoneCMUViewController.o
"_cont_ad_calib", referenced from:
- in iPhoneCMUViewController.o
"_ad_read", referenced from:
- in iPhoneCMUViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Could anyone please help? I'm using Rajeevan's code that he provided on his
site.
Thank you very much!
Teddy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm trying to use the variables: ad_rec_t ad; and cont_ad_t cont; in my
code, but I keep getting this error:
Ld /Users/LQX/Library/Developer/Xcode/DerivedData/iPhoneCMU-
dnbvbxtslouaradxfsxzugnlafcs/Build/Products/Debug-
iphonesimulator/iPhoneCMU.app/iPhoneCMU normal i386
cd /Users/LQX/Desktop/iPhoneCMU-Final
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/
Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2
-arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/S
DKs/iPhoneSimulator4.3.sdk -L/Users/LQX/Library/Developer/Xcode/DerivedData
/iPhoneCMU-dnbvbxtslouaradxfsxzugnlafcs/Build/Products/Debug-iphonesimulator -
L/Users/LQX/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhone
Simulator4.3.sdk/lib -L/Users/LQX/Desktop/iPhoneCMU-Final/../../Downloads
/KingOfBrian-VocalKit-a25e5f3/libs
-F/Users/LQX/Library/Developer/Xcode/DerivedData/iPhoneCMU-
dnbvbxtslouaradxfsxzugnlafcs/Build/Products/Debug-iphonesimulator -filelist
/Users/LQX/Library/Developer/Xcode/DerivedData/iPhoneCMU-
dnbvbxtslouaradxfsxzugnlafcs/Build/Intermediates/iPhoneCMU.build/Debug-
iphonesimulator/iPhoneCMU.build/Objects-normal/i386/iPhoneCMU.LinkFileList
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lpocketsphinx
-lsphinxbase -liconv -framework AVFoundation -framework Foundation -framework
UIKit -framework CoreGraphics -framework AudioToolbox -framework CFNetwork -o
/Users/LQX/Library/Developer/Xcode/DerivedData/iPhoneCMU-
dnbvbxtslouaradxfsxzugnlafcs/Build/Products/Debug-
iphonesimulator/iPhoneCMU.app/iPhoneCMU
Undefined symbols for architecture i386:
"_d_open_dev", referenced from:
- in iPhoneCMUViewController.o
"_cont_ad_init", referenced from:
- in iPhoneCMUViewController.o
"_ad_start_rec", referenced from:
- in iPhoneCMUViewController.o
"_cont_ad_calib", referenced from:
- in iPhoneCMUViewController.o
"_ad_read", referenced from:
- in iPhoneCMUViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Could anyone please help? I'm using Rajeevan's code that he provided on his
site.
Thank you very much!
Teddy
cont_ad functions are included into libsphinxad libarary which you need to
link with your application. You need to add this library to linker flags.
Thank you very much nshmyrev! That totally fixed the problem.