I have following four files:
1. A hash - header1.h
2. A main header file - header2.h
3. A functions file - functions.cpp and
4. A main file - main.cpp.

header1.h and header2.h are included in functions.cpp
Only header2.h is included in main.cpp
Actually, it works fine.

But now, I wanna call a "const int" data declared in header1.h from main.cpp.
I tried including header1.h in main.cpp, it shows the error. It says redefined.

How can I access a variable from header1?