Seperate compilation (that's what it's called, right?) seems to be
quite popular, so I decided to get some info about it, and (d'oh) use
it...
But it's whole structure seems weird to me...
Here's what I think of how it is (from what I've read):
THE PROJECT
+1st header file
+Implementation of the 1st header file (includes the header file)
+2nd header file
+Implementation of the 2nd header file (includes the header file)
........
+Nth header file
+Implementation of the Nth header file (includes the header file)
+MAIN program which includes the header files
I guess the above structure is correct...
But here's what I don't understand...
Since the main program includes the header files, it only has the
interfaces and not the implementations of the headers (since the
implementations are in the .cc files, and not in the .h files).
But the headers DON'T include their implementations; the opposite
though does happen...
So how can the program be aware of the implementations since it seems
like the .cc files are nowhere included??????
And how would I compile such a project? For example, let's say I
compile the main program... Whatever will happen of the
implementations???
Thanks in advance and for your patience,
cmad