Do I need a source file for each of my header files?

I've got a simple class that doesn't need a specific constructor or any functions, any need to make a source file?
One word answer: no.


Longer answer:

The #include statement tells the preprocessor to insert a verbatim copy of the header file into your code. So this is equivalent to having your class defined in the main .cpp file.
Topic archived. No new replies allowed.