I have Global.h that looks like
#define NUMBERX 21
In AppDelegate.h, I include the Global.h file. In AppDelegate.m, I include the file AppDelegate.h. But in AppDelegate.m, I cannot access the NUMBERX variable.
ERROR: Use of undeclared indentifier 'NUMBERX'.
If I define NUMBERX in AppDelegate.h, how does it work, but I want to include only the header file (Global.h) in all other header files where I want to use the NUMBERX variable.
How can i solve this?
source share