Reputation: 11
I have two header files named Secure.h and FileMgt.h. To encrypt the File while saving i use Secure.h in FileMgt.h and in FileMgt.h i have declared some structure which is needed by Secure.h.The FileMgt.h is again include in another file called ElecB.h. I have used header guards in all the Files. The Problem is FileMgt.h is First included in ElecB.h. Since this file is already included in ElecB.h. Now its not including again in Secure.h. Please give me Solution for this. Thanks in advance.
Upvotes: 0
Views: 200
Reputation: 28
Declare the structure in a third header file (with include guards) and include it in both Secure.h and FileMgt.h
Upvotes: 1