How to process all #include directives in Visual Studio C++ 2005?
I want to see how my #include files be processed when Microsoft Visual Studio C++ compile it. As I remember, there is a compile option to inline all #includes and #define lines but I can'开发者_如何学运维t find it. I use MSVC 2005 sp1.
The option you are looking for is under your project properties, "C/C++", "Preprocessor" then change "Generate Preprocessed File" to "With Line Numbers" or "Without Line Numbers", whatever you want.
精彩评论