|
-
July 27th, 2010, 01:58 PM
#1
A question regarding preprocessor
I wonder if there is any command line option under VS to save the output of preprocessor? Thanks.
-
July 27th, 2010, 02:07 PM
#2
Re: A question regarding preprocessor
It's useless, the compiler already reads that
-
July 27th, 2010, 02:12 PM
#3
Re: A question regarding preprocessor
Sometimes it is very useful. For example, if I define a lot of macro, I want to check how they are processed to make sure there isn't any problem. After the compiler reads them, there is no chance for me to keep track of them.
 Originally Posted by Turingmachine
It's useless, the compiler already reads that
-
July 27th, 2010, 02:12 PM
#4
Re: A question regarding preprocessor
Yes, it's in the project properties somewhere.
-
July 27th, 2010, 04:49 PM
#5
Re: A question regarding preprocessor
For MSVC that is C/C++, Preprocessor, Generate Preprocessed File
Edit: Oh, the command line option is /P
To view all options type cl -? in a command shell.
Last edited by S_M_A; July 27th, 2010 at 04:51 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|