C (*.c, *.m) void hej() C _hej. ++ (*.cc, *.mm, ..), ++ 'mangled name', . ( , , void hej(int) void hej(char*)). hej.m C. main.mm ++, .
, , main.mm C, ++. hej.h, - , , hej.h C ++:
#ifdef __cplusplus
extern "C" {
#endif
void hej();
#ifdef __cplusplus
}
#endif
hej.h, main.mm :
extern "C" {
#import "hej.h"
}
int main(int argc, char *argv[])
{
}