I am running opencv on iOS but some of the commands give linker error Undefined symbols for architecture i386
. I am trying to change the Compiler for C/C++/Objective-C in build options of the xcode project but there is no option for clang. The only option is the selected one Default Compiler Apple LLVM 5.0
. Does anyone know how to get through this?
Asked
Active
Viewed 1,320 times
1

Khawar Ali
- 3,462
- 4
- 27
- 55
-
This link might help http://stackoverflow.com/questions/15387596/compiling-opencv-2-4-on-a-64-bit-mac-in-xcode – chandu Jan 23 '14 at 08:10
1 Answers
0
"Apple LLVM 5.0" is otherwise known as "clang", which is the C, C++ and Objective-C front-end for LLVM.
From the clang webpage:
The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler. You can get and build the source today.
However changing the compiler won't affect your "undefined symbol" error, which is probably because you aren't linking against a "fat library" (an archive that contains multiple architectures for iOS Devices and the iOS Simulator).

trojanfoe
- 120,358
- 21
- 212
- 242
-
-
-
are you referencing any project or external framework? – Marcio Romero Patrnogic Jan 23 '14 at 22:51