First of all it is better not to rely on that the compiler ignores cases in filenames (rect.hpp and Rect.hpp) so adjust your cases!
Second: does it compile? If the hpp comtains only the deklarations and the cpp file only the implementation it should not compile if the hpp is ignored!
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have declared a "Rectangle" Class and have saved it Rect.hpp.
I have then set-out a second class Rect.cpp which incorporates the "Rect.hpp" class by having the following statement in the first line:
#include "rect.hpp"
Question:
When I compile the Rect.hpp class the compiler does not seem to pick up any of the errors. How can be sure that Rect.hpp code is correct?
Any ideas?
Many Thanks.
First of all it is better not to rely on that the compiler ignores cases in filenames (rect.hpp and Rect.hpp) so adjust your cases!
Second: does it compile? If the hpp comtains only the deklarations and the cpp file only the implementation it should not compile if the hpp is ignored!
Thomas