PDA

View Full Version : How to use c library in the iphone project?




youngplayer
Sep 19, 2009, 06:29 AM
I want to use the c library which is made by pure C language from the third party company, which won't let me get the source code.

And I've tried to make a demo c library by "Cocoa touch library","BSD library",etc.But I can't use it in the iphone project.

Does anyone has such experience to use c library in the iphone project???

Help......

Thanks!



firewood
Sep 19, 2009, 02:06 PM
Not only will you need the library in the proper format, but you'll need libraries built for both x86 and armv6/armv7.

youngplayer
Sep 20, 2009, 03:00 AM
Not only will you need the library in the proper format, but you'll need libraries built for both x86 and armv6/armv7.

Could you explain in detail?

I built the c library by "cocoa touch library" which I think is special for making library files for the iphone project. But it can't be imported as framework; and when I copy it to the iphone project directory and include it directly, it doesn't work...

I haven't found the guidence to use c library in the iphone project.If you know where the document is,please tell me, thank you!