title: How to generate pre-processed C code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/277258/c-c-source-file-after-preprocessing">C/C++ source file after preprocessing</a>  </p>
  </blockquote>
  
  
  
  <p>I am looking to generate all of the pre-processed c code for an application, in this case apache. I downloaded the source code for Apache, and have been running the following command “gcc -c -save-temps *.c” and have tried <em>/</em>.c. When running either of these commands, I get numerous errors, some of which include:</p>
  
  <pre><code>server/core.c:17:17: fatal error: apr.h: No such file or directory
  compilation terminated.
  server/core_filters.c:22:17: fatal error: apr.h: No such file or directory
  compilation terminated.
  server/eoc_bucket.c:17:19: fatal error: httpd.h: No such file or directory
  compilation terminated.
  </code></pre>
  
  <p>I am fairly certain the program SHOULD compile correctly since  it came right from the Apache website. What should I be doing in order to generate the necessary pre-processed c code. Should I be using the makefile somehow?</p>
  
  <p>The application I am attempting to analyze the source code with which requires the pre-processed c code can found <a href="http://ropas.snu.ac.kr/mecc/" rel="nofollow noreferrer">here</a></p>
  
  <p>Thank you for your help everyone.</p>