Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 XCode 4.2b 编译此示例代码,这是我的项目的样子:
应用程序类型:命令行工具。当我尝试构建项目时,我收到以下错误列表:
我想我还没有在项目中添加一些框架,虽然我不知道应该添加哪些框架......
导入的文件可能包含 Objective C 代码,但您使用的是 C 编译器。
将文件扩展名更改main.c为main.m.
main.c
main.m