Compiler Warning C4150: deletion of pointer to incomplete type 'XXX'; no destructor called
2008-06-03 15:24
525 查看
Lookatthefollowingcodes:
//C4150.cpp //compilewith:/W2 classIncClass; voidNoDestruct(IncClass*pIncClass) { deletepIncClass; }//C4150,defineclasstoresolve
Reason:
ThecompilerwarningisbecausethecompilerwasunabletofindthetypeIncClass'sdestructor.
Solution:
PuttheimplementationofIncClasstoheaderfileandincludethefileinthisCPP.
相关文章推荐
- warning C4150: deletion of pointer to incomplete type 'xxx'; no destructor called 的解决办法
- deletion of pointer to incomplete type 'A'; no destructor called
- no rule to process file 'xxx/.../jquery.js' of type sourcecode.javascript for architecture i386
- warning: no rule to process file 'h' of type sourcecode.c.h for architecture i386
- 警告 - no rule to process file 'WRP_CollectionView/README.md' of type net.daringfireball.markdown for architecture i386
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- Pointer to non-const type 'PLTexture*'with no explicit ownership错误,解决办法
- jsf配置问题 Error performing conversion of value ' of type class java.lang.String to type class
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- VS2010:error C3083: 'Office': the symbol to the left of a '::' must be a type
- Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'错误
- Cast from pointer to smaller type 'int' loses information
- Error 1 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::
- error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::
- (Android jni) error: base operand of '->' has non-pointer type '_JNIEnv'
- warning: passing argument 2 of 'request_irq' from incompatible pointer type导致的中断申请失败和
- 错误 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::str
- left of '->GetStatus' must point to class/struct/union/generic type
- variable `xxx' has initializer but incomplete type