I have the source code for a video decoder which is written in C. The code was successfully compiled and executed on MAC terminal (which uses GCC compiler). Now I'm trying to create an application on Xcode with the same source code. Only the GUI for the application is written in Objective-C.
When I tried to execute on Xcode (which uses LLVM compiler), I'm getting a lot of errors in the C code. The only other compiler option that Xcode provides is LLVM GCC 4.2. I compiled using that and found that it is not able to recognize the code written in Objective-C.
Is there any compiler that can be used for both Objective-C and C? Can GCC 4.2 compiler be used for compiling Objective-C code?
How to tell Xcode to compile using GCC 4.2 compiler?
Kindly help. Thanks in advance!