Is there a switch on msvc6 and/or msvc.net that will allow me to see the translation unit. Im having to debug macro intensive code and i want to see what the compiler sees after preprocessing. Does msvc allow this?
Is there a switch on msvc6 and/or msvc.net that will allow me to see the translation unit. Im having to debug macro intensive code and i want to see what the compiler sees after preprocessing. Does msvc allow this?
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
In MSVC.NET ( aka 7 ) or 2003 ( aka 8 ) you have a switch somewhere in the options that saves the preprocessed files as .i files before compiling... but I don't have my version on this PC, I'll have a look later at work.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
The flag is /P. It saves the translation unit as a .i file with the same name as the source file.
p.s. What the alphabet would look like without q and r.
Project Properties -> C++ -> Preprocessor -> Generate Preprocessed File -> Yes
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.