How to compile C program with multiple files in Xcode
问题 I am on a Mac running Mac OS X 10.6.3 and Xcode 3.2.1 64-Bit and I was wondering if it was possible to compile a C program with multiple .c files in Xcode. Thanks in advance! 回答1: Sure it is. Assuming you're starting from scratch (without an existing XCode project), do a "new project" and choose the "Mac OS Application" -> "Command Line Tool" -> "C" project template. That will give you a skeleton project with a template "main.c". Edit/replace "main.c" as needed, and add the rest of your .c