Reply To: Is -ObjC linker flag required for RapidEars?

Home Forums OpenEars plugins Is -ObjC linker flag required for RapidEars? Reply To: Is -ObjC linker flag required for RapidEars?

#1025582
rikk
Participant

Answering my own question (I think):

I have probed a bit more inside of the OEPocketsphinxController+RapidEars.h and saw that RapidEars is using Objective-C `category’ feature to extend the class. This was a great opportunity for me to learn about the ‘category’ feature of Objective-C.

https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html

As I researched more, I found this on Stack Overflow:
http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

And doc from Apple:
https://developer.apple.com/library/mac/qa/qa1490/_index.html

ANSWER: Yes, the -ObjC linker flag is indeed required when using any plugins for OpenEars. :-D