Keith Thompson <ks***@mib.org> wrote:
# "AB" <ab*****@gmail.com> writes:
# > Hello All,
# >
# > I've got code like this...
# >
# > #ifdef SYMBOL
On the command line include -DSYMBOL to simulate
#define SYMBOL
and -DSYMBOL=VALUE for
#define SYMBOL VALUE
For example,
(cd /tmp
cat >t.c <<':eof'
#include <stdio.h>
int main(int n,char **p) {
#ifdef P
printf("P\n");
#endif
#ifdef Q
printf("Q\n");
#endif
printf("least random number %d\n",R);
return 0;
}
:eof
cc -DP -DR=17 t.c
a.out)
# "info gcc" should give you the gcc documentation on most systems.
Once again wasting more bandwidth not answerring the question then
a simple answer would've provided.
--
SM Ryan
http://www.rawbw.com/~wyrmwif/
No pleasure, no rapture, no exquisite sin greater than central air.