Hi, I have what I think is a pretty basic question. I need to have a global value defined, prefferably in one of my header files. The value should be accessible to all the .cpp files that include that header. The problem with what I tried is that I get errors that the value has already been defined since it is included in each .cpp file. I need something like:
int programIsActive = 1;
I need to be able get and set that value from any of the .cpp files. What is the best way to do this?
(I am already using a #ifndef for the whole contents of the header file but that does not seem to help)