HOW TO enable a #define in .h from gcc line??
Hi, Thanks to All in advance. I am relatively new to Linux and had a question for you all. If I have numerous #ifdef's in my header file and wanted to use one of them with a #define, can I do this when making the project or when compiling so that that definiton is enabled? and the others won't work. for example,
#ifdef THIS
#define score 3
#endif
ifdef THAT
#define score 4
#endif
now say I wanted score = 3 and instead of putting the #define THIS at the top of the header, I'd like to activate it from the command line when compiling the file. is this possible?? if not, does anybody have any easy solutions? Thank you so much and I hope I didnt confuse anyone too badly.
|