Export (0) Print
Expand All
Expand Minimize
4 out of 5 rated this helpful - Rate this topic

Compiler Warning (level 2) C4150

Error Message

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

© 2014 Microsoft. All rights reserved.