So I've reached Chapter 6 of C++ Primer 5th edition. Section 6.1.3. covers separate compilation and compiling and linking multiple source files. It then goes on to show system prompts (e.g. $ CC factMain.cc fact.cc
where $ is the system prompt and CC is compiler name) that you would use in order to produce an executable file, showing the compiler where the files are.
It then talks about compiling separately to get an object file, and then linking these to form an executable.
Now I could be wrong, but is this necessary in Xcode? The system prompts stuff and the like. When you make a project, you have a target, right? And that comes with a product, an executable. To add source files to this, don't you just right-click and add .cpp files and .h header files as necessary? Or is there something else I need to do, in a similar manner discussed in the book, to get separate compilation and linking.
Thanks in advance for all the help! =D