0

I have been using the Borland BCC32 compiler and love the CPP32 line numbering tool. Now I want to switch to the cl.exe compiler. Is there a tool like CPP32 in the Microsoft system?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by vijayan121
0

you could use the following compiler switches.
/C preserve comments during preprocessing.
/E copy preprocessor output to standard output (with #line)
/EP copy preprocessor output to standard output (without #line)
/P write preprocessor output to a file.

To set this programmatically, use the VCCLCompilerTool class.
VCCLCompilerTool::GeneratePreprocessedFile property provides the same functionality.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.