I want to see the output of the Visual C++ Preprocessor on my code — i.e., the equivalent of gcc -E. For the life of me, I cannot find the relevant compiler switch. How do I accomplish this?
I want to see the output of the Visual C++ Preprocessor on my code
Share
cl.exe, the command line interface to Microsoft Visual C++, has three different options for outputting the preprocessed file (hence the inconsistency in the previous responses about Visual C++):/E: preprocess to stdout (similar to GCC’s -E option)/P: preprocess to file/EP: preprocess to stdout without #line directives(copied directly from https://stackoverflow.com/a/277362/3279)