Find the available preprocessor macros

From Openembedded.org
Jump to navigation Jump to search

Q: A build fails and I need to know which preprocessor macros are available.

First create an empty file and the run your gcc like this:

touch tmp.c
gcc <your gcc options> -E -dM tmp.c | less