Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 2) C4099

Error Message

'identifier' : type name first seen using 'objecttype1' now seen using 'objecttype2'

An object declared as a structure is defined as a class or an object declares as a class is defined as a structure. The compiler uses the type given in the definition.

Example

The following sample generates C4099.

// C4099.cpp
// compile with: /W2 /c
struct A;
class A {};   // C4099, use different identifer or use same object type

Community Additions

ADD
Show:
© 2015 Microsoft