How can I compile C code that has already been C pre-processed with GCC?

前端 未结 3 504
心在旅途
心在旅途 2021-01-15 16:04

I\'m performing some source processing between C preprocessing and C compilation. At the moment I:

  1. gcc -E file.c > preprocessed_file.c.
3条回答
  •  独厮守ぢ
    2021-01-15 16:57

    Save the file with the .i suffix after pre-processing. Gcc man page:

           file.i
               C source code which should not be preprocessed.
    
           file.ii
               C++ source code which should not be preprocessed.
    
    

提交回复
热议问题