AnsweredAssumed Answered

hi,in codewarrior v10.5.1 how to define macros at run time

Question asked by chandra mouli gajjala on Jan 20, 2018

for example in c program gcc compiler

 

int main()

{

#ifdefine var

printf("hai\n");

#endif

#ifdefine glob

printf("hello\n");

#endif

}

for this program we have to define macros at compile time 

cc -Dvar <filename.c>

./a.out

then it print hai ,like in this way how todo in codewarrior.

Outcomes