title: Compile several files together?
body: <p>I have</p>
  
  <ul>
  <li>Data.cpp</li>
  <li>Data.h</li>
  <li>User.cpp</li>
  <li>User.h</li>
  <li>main.cpp</li>
  </ul>
  
  <p>Main.cpp need data.cpp and user.cpp. How do I link or compile them? They all in same directory? (please be more specific, like which file to compile first.)</p>
  
  <p>My system is: Mac OS X, g++ compiler in terminal.</p>