Printing all the pre defined gcc macros

26.10.2007 at 22:50

Another thing which is quite useful when dealing with preprocessor issues is a list of all compiler defined macros. So here you go.

gcc -dM -E - < /dev/null

Marc

Comments (2)

Thanks!

07.05.2008 by Nikolodeon

I've searching for a commandline like this! thankyou

Thanks too!

26.07.2008 by Alex Telea

This is great. I spent >5 hours trying to find out how to do that.. Alex

1