I have a class "userInterface.h" which I have declare an instance for as a global variable in the main() function and I have also created a header file externVariable.h where I have included the instance of userInterface declare in the main() as a global variable. The intention here is to access the user interface almost anywhere in my program by just including the header file externVariable.h but I'm getting an error "userInterface does not name a type" when I run the program. Thanking you in advance.
Can you post your code, so we can see what might be wrong with it?
Come on guys, i'm sure there is atleast one person out there who can answer my question.
We're not a paid service, you know. If somebody, out of generosity, chooses to spend their time and energy in helping you with your problem, they'll do it on their own schedule. Trying to badger people into giving you immediate attention is not going to incline people to help you.