I have
- Data.cpp
- Data.h
- User.cpp
- User.h
- main.cpp
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.)
My system is: Mac OS X, g++ compiler in terminal.
The simplest way :
More advanced way : use a makefile