Because I wanted to learn more about the preprocessor, I enabled “Preprocess to a file” for my project (project properties, C/C++, preprocessor), so it looked like this:
However, at some point, I noticed that I do not get compiler warnings any more, and sure enough, that’s documented:
The /P option suppresses compilation. It does not produce an .obj file, even if you use /Fo (Object File Name).
Now, that’s very inconvenient. I’d like to have a look at both, the result of the preprocessor and get compiler errors. Is it possible to achieve that in Visual Studio 2022?
11