0

Possible Duplicate:
Displaying the #include hierarchy for a C++ file in Visual Studio

I have a cpp file that includes multi-level header files (nested), and so difficult for me to know exactly what final header files are included. It apparently includes one header file, but I want to know where is that header file actually included (must be included in some other header file which is included by this cpp file).

How can I get a list of header file map included by compiler?

Thanks

Community
  • 1
  • 1
Sheen
  • 3,333
  • 5
  • 26
  • 46

1 Answers1

1

You can add the /showIncludes switch to the compiler. Then it will list all includes for the cpp files. More info can be found here.

mkaes
  • 13,781
  • 10
  • 52
  • 72