Problem using global constants

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.:

1>f:\school\cs161\chapter problems\chap8prob4\monkey.h(19): error C2065: 'MONKEYS' : undeclared identifier

Any ideas why I get this error when I can see that the constants are recognized in the header files?
Did you declare them (the constants) as micros?
If so, you should declare them in the headfile, then include the headfile in main.cpp.
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.
Topic archived. No new replies allowed.