I'm using multiple classes that basically just interact with vectors of each other. I'm trying to test it, but I keep getting the compiler errors "undefined reference to " for my Bathroom constructor and functions.
However, when I change the #includes from .h to the .cpp files, the program compiles and works fine. But it seems to me like it's bad practice to include .cpp files over .h files. Is this true? Or is it no big deal? I don't think I've ever included a .cpp file. I recently switched to Linux...could that be an issue somehow?