开发者

Is it possible to use some C source code in iPhone project?

开发者 https://www.devze.com 2023-04-10 21:11 出处:网络
I found a speech synthesizer that supports many languages (http://espeak.sourceforge.net/index.html). But the source code that is available is written in C.

I found a speech synthesizer that supports many languages (http://espeak.sourceforge.net/index.html). But the source code that is available is written in C.

开发者_如何学Python

What can i do to make it work on iPhone?


Objective-C is a strict super set of C. Which means you can use any C code in your Obj-C project.


Yes, as long as it's been ported to the LLVM C-compiler. You can create a statically linked framework out of it, and then link into your project.

Apple does not allow dynamically-loaded frameworks.

0

精彩评论

暂无评论...
验证码 换一张
取 消