I'd like to see all macros that are defined by the invocation of the compiler I'm using. Is there any way to do this? I have seen in the manual it says you can use cpp -dM
but this doesn't work for me. Perhaps I'm doing something wrong?
When I run:
cpp -dM
I get no output at all from the preprocessor. If I try adding -dM
as an option on gcc, I don't notice any difference.
cpp -dM < /dev/null | wc -l
is124
, so there are 124 predefined values.cpp -dM < /dev/null | less
shows me what they are. What is the output of those commands on your computer? – Blockbuster