I have 4 files, 3 of them are class header files and one of them is the main file. Everything works fine when I run these, except under one condition. I want to make a set of global contstants, in main, to use in the class header files. I can see that the global constants are recognized in the class headers, but when I compile I get the following error, where ever I use one of these constants. e.g.:
I want to make a set of global constants, in main, to use in the class header files.
If they are constants and they need to be used in the header files, then put them in the header files. If this doesn't make sense then please post the code so we can better understand what you're trying to do.