Let’s say I have a source file with many preprocessor directives. Is it possible to see how it looks after the preprocessor is done with it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 directivesIf you want to preprocess to a file without #line directives, combine the
/Pand/EPoptions.