Objective-C and C Compatibility

We need to write a C library, and this library must be accessible from Objective-C. Now I don’t know anything about Objective-C, so I wonder how easy it is to use Objective-C C. Is it as simple as including the C header in Objective-C code and linking to the library? Is there anything special I have to do (for example, the extern "C" bit with C ++)?

+4
source share
2 answers

Objective-C is a strict superset of C. You do not need to use extern "C" or anything like that.

+13
source

Objective-C is a strict superset of GNU C (note that this is not the same as ISO C90).

+7
source

All Articles