编译连接时出现问题:
localhost:11-OC mazhihua$ cc 09-OC对象和函数.m
Undefined symbols for architecture x86_64:
"_NSLog", referenced from:
-[Car run] in 09-OC对象和函数-83cd7b.o
"_OBJC_CLASS_$_NSObject", referenced from:
_OBJC_CLASS_$_Car in 09-OC对象和函数-83cd7b.o
"_OBJC_METACLASS_$_NSObject", referenced from:
_OBJC_METACLASS_$_Car in 09-OC对象和函数-83cd7b.o
"___CFConstantStringClassReference", referenced from:
CFString in 09-OC对象和函数-83cd7b.o
"__objc_empty_cache", referenced from:
_OBJC_METACLASS_$_Car in 09-OC对象和函数-83cd7b.o
_OBJC_CLASS_$_Car in 09-OC对象和函数-83cd7b.o
"_objc_msgSend", referenced from:
_main in 09-OC对象和函数-83cd7b.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
localhost:11-OC mazhihua$