> > #define c 1 >> #define d 2 > >Yeah, that's what I meant. > >> >> Yes, that works inside of files, but I need to define the symbol >> _outside_ of any file, e.g. on the compiler's command-line. I don't >> want to involve any other files ("include on demand") that would >> contain the #define directive. This is a subtle difference ... > >inside your file: > >#define c 1 >#define d 2 > >#if CONFIG == c > ... >#elif CONFIG == d > >#endif > >And all that has to go on the command line is: > > -dCONFIG=c > >which is, I believe, what you are looking for. Ahhh .. so we give the char a numeric value via the #define, so that a valid comparison can be made, and we can pass any character in on the command line. Thanks, that's what I was looking for! -- ______________________________________ Andrew E. Kalman, Ph.D. aek@pumpkininc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu