www.digitalmars.com         C & C++   DMDScript  

c++ - Compiling with -e and -l does not put line numbers in the source

reply Edward Diener <eddielee_no_spam_here tropicsoft.com> writes:
Compiling with -e -l shows a listing but does not put line numbers in 
it. How do I get line numbers in my preprocessed output ? Also I would 
like to generate preprocessed output with line numbers without the 
compiler actually compiling the preprocessed output. How do I do that ?
Aug 21 2010
parent Walter Bright <newshound2 digitalmars.com> writes:
Edward Diener wrote:
 Compiling with -e -l shows a listing but does not put line numbers in 
 it. How do I get line numbers in my preprocessed output ? Also I would 
 like to generate preprocessed output with line numbers without the 
 compiler actually compiling the preprocessed output. How do I do that ?

The standalone preprocessor, sppn.exe, should give you that.
Aug 22 2010