Search code examples
c++ceclipsecompiler-errorsdebug-symbols

is there a way to list symbols that are defined in c/c++ by #define


I am using eclipse and keep getting an undefined reference to `__assert_func' error in my c/c++ code.

I am wondering if there is a way to tell what is being defined ( # define **). I can manually go through my files, but I am working with a lot of them and this would take a while. Is there a compiler option or a tool that could list these for me?

Thanks,

Sam


Solution

  • This is dependent on the compiler. You can read this if you're running GCC.

    GCC dump preprocessor defines