source.c --(预处理)--> temp_source.c --(编译)--> source.elf --(链接)--> source.exe
如何查看temp_source.c?
(我只是假设这个文件名为temp_source.c)
编辑:我正在使用 Diab 编译器。
最佳答案
Microsoft Visual C++ 的命令行界面可用于将预处理后的文件输出为:
/E: preprocess to stdout (similar to GCC's -E option)
/P: preprocess to file
/EP: preprocess to stdout without #line directives
关于c++ - C/C++ : source file after preprocessing-Diab compiler?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35268057/