Link to home
Start Free TrialLog in
Avatar of bcarder
bcarder

asked on

#ifdef BOB

if I have
#ifdef BOB
  printf("Hello");
#endif

in a c file.  Is there any other way to get the printf statement to be compiled other than with this line code
#define BOB 10

some where in the path of compilation.
Avatar of bcarder
bcarder

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of dhaineault
dhaineault

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bcarder

ASKER

Thanks, I didn't know about the -D option.  That was where I need to look.