Tae-Sung Shin
Tae-Sung Shin

Reputation: 20643

Any way to list header files used to compile each cpp file?

I got this compilation error in VC++ 2010 pro. Confusing thing to me is that I didn't include windef.h file nor any thing related to Microsoft SDK so I'd like to find which cpp file needs that header file for compilation. Any help will be appreciated.

 error C2011: 'HDC__' : 'struct' type redefinition
 1>          c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(267) : see declaration of 'HDC__'

Upvotes: 2

Views: 256

Answers (1)

Owen Wengerd
Owen Wengerd

Reputation: 1628

You can use the /showincludes compiler option for that.

Upvotes: 4

Related Questions