Compiler Warning (level 1) C4176
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 1) C4176

Error Message

'subcomponent' : unknown subcomponent for #pragma component browser

The component pragma contains an invalid subcomponent. To exclude references to a particular name, you must use the references option before the name.


// C4176.cpp
// compile with: /W1 /LD
#pragma component(browser, off, i)  // C4176
#pragma component(browser, off, references, i) // ok
© 2016 Microsoft