I have recently broken my program up into many seperate files and have since noticed a problem. Occasionally, header files that have already been included are included again. If you include two header files that are the same, will the compiler be smart enough to omit one of them? For example:
Think of this as File1.cpp/h.
*** FILE1.CPP ***
#include
#include "file1.h"
*** FILE1.H ***
#include "file2.h"
Here''s File2.cpp/h.
*** FILE2.CPP ***
#include
#include "file2.h"
*** FILE2.H ***
#include "file1.h"
Please excuse the crudeness of the example, but just notice that File1.h calls File2.h, and then File2.h calls File1.h in return. Will this cause any code bloat or anything bad?
---
Joker2000
Stevie Ray Vaughan - The Legend