User forums > Using Code::Blocks

How to dump all predefined symbols known to the compiler?

(1/1)

ilikejello:
Hello guys, I am relatively new to programming (I am a student) and I am wondering how I can dump all the predefined symbols used by the codeblocks (gcc) compiler?

Thank you very much.

oBFusCATed:
Are you talking about the defines? Then you can compile a simple source file and tell the compiler to dump the preprocessed source instead of generating object file.

For gcc I think it is something like: gcc -E main.c or g++ -E main.cpp, but I could be wrong of course, so consult the manual.

BlueHazzard:
or you run use the -v option

Alpha:
g++ -dM -E -x c++ /dev/null

Navigation

[0] Message Index

Go to full version