gcc - Anyway to see list of preprocessor defined macros? -
i'd see macros defined invocation of compiler i'm using. there way this? have seen in manual says can use cpp -dm
doesn't work me. perhaps i'm doing wrong?
when run:
cpp -dm
i no output @ preprocessor. if try adding -dm
option on gcc, don't notice difference.
you can use:
gcc -dm -e - < /dev/null
note can compiler macros in addition command:
touch bla.c && gcc -dm -e bla.c
for example on computer:
$ touch bla.c && gcc -dm -e bla.c | wc -l 486 $ gcc -dm -e - < /dev/null | wc -l 124 $
Comments
Post a Comment