one.m
#import "two.h"
int main(){
test();
return 0;
}
two.h
void test();
two.c
#include <stdio.h>
void test(){
printf("調用了C語言的函數\n");
}
編譯
cc one.m two.c
得出結果
one.m
#import "two.h"
int main(){
test();
return 0;
}
two.h
void test();
two.c
#include <stdio.h>
void test(){
printf("調用了C語言的函數\n");
}
編譯
cc one.m two.c
得出結果