Can I view my compiler error in the pre-processed file? I am trying to figure out what a specific symbol is being replaced by after macro expansion. I am using Visual C++. Basically I would like to see the exact error causing line in the pre-processed file.
Asked
Active
Viewed 24 times
0

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129

codeworks
- 149
- 1
- 15
-
The other questions answers how I can get the pre-processed output. I know how to do that. What I am trying to do is as follows - (1.)My compiler has a problem with abc.cpp at line 233 (2) I would like to see the erroneous line(like 233 of abc.cpp) after pre-processing, see exactly what is not compilable after pre-processing, which basically means I want to see the error *in* the pre-processed file. the exact line that is causing the error – codeworks Sep 29 '16 at 04:04
-
Ok, would help if you actually made that clear in the question. "I am trying to figure out what a specific symbol is being replaced by after macro expansion" does not convey that and is answered by the linked question. Please update the question with more detail and I will vote to reopen. – kaylum Sep 29 '16 at 04:06
-
Sure, i will do that. Thanks @kaylum! – codeworks Sep 29 '16 at 04:10
-
I have reworded the question, can you please vote to reopen the question @kalyum – codeworks Sep 29 '16 at 04:42
-
I have. But it takes a number of votes to reopen. – kaylum Sep 29 '16 at 04:53