wrote:
> I am using cosmic compiler for software development. Now, I am just
> curious whether can I do the following...
Not as written, but it's possible to do something very much like it.
See the other replies for details.
BUT:
> #include GLOBAL_PATH
> instead of
> #include "..\control\global.h"
neither of these really is a good idea. Don't put path names in
#include statements. Not from the outside (like GLOBAL_PATH), nor from
inside the source file itself. Use your compiler's method of specifying
include file search paths from outside the source, instead. It's
usually the -I option.
And if you choose to ignore this advice and put path names into your C
source, you _definitely_ don't want to spell them with single
backslashes. Use forward slashes (they work on DOS/Windows, too!), or
double them up.