How do you set up a project to use .cpp files and what not?

For example, say I have:

- main.cpp
- Header1.h
- Header1.cpp

What needs to be included in each of these so it does the whole 'separate compilation' thing I'm reading out but can't seem to understand?

If it matters, I'm using VSC2013.
The files you listed need to be included if I'm reading what your asking right.


#include"Header1.h"
#include"Header1.cpp"

" " will search in the same directory as your main.cpp (ish)
< > will search where the compiler finds library headers
Last edited on
Topic archived. No new replies allowed.