News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to dump all predefined symbols known to the compiler?

Started by ilikejello, August 12, 2014, 09:09:32 PM

Previous topic - Next topic

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard


Alpha