Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 2) C4150
Collapse the table of content
Expand the table of content

Compiler Warning (level 2) C4150

deletion of pointer to incomplete type 'type'; no destructor called

The delete operator is called to delete a type that was declared but not defined, so the compiler cannot find a destructor.

The following sample generates C4150:

// C4150.cpp
// compile with: /W2
class  IncClass;

void NoDestruct( IncClass* pIncClass )
{
   delete pIncClass;
} // C4150, define class to resolve

int main()
{
}

Community Additions

ADD
Show:
© 2015 Microsoft