How do I get preprocessor output?

How do I get preprocessor output with Code::Blocks C?
Last edited on
Cannot understand your question. Could you provide the code of what are you trying to do
C compilers first pre-process a C file to resolve all #define's. Then they go into the compile stage. With every C compiler there is an option to keep the pre-processed file. Code::Blocks uses the GCC compiler which itself uses the -E flag to specify this request. However Code::Blocks documentation does not say how to cause this flag to pass to the compiler. I tried adding it to Settings/Compiler but that sends the output to stdio and that does not seem to be captured by Code::Blocks.

So my question is relatively simple to anyone that understands this concept.
Topic archived. No new replies allowed.