shenhui19860214 9 Posted March 11, 2016 Share Posted March 11, 2016 Pet system to add errors, who can help me. Skype: fei.sun2011 Spoiler char.cpp: In member function 'void CHARACTER::Destroy()': char.cpp:517:17: error: invalid use of incomplete type 'class CNewPetSystem' m_newpetSystem->Destroy(); ^ In file included from char.cpp:6:0: char.h:27:7: error: forward declaration of 'class CNewPetSystem' class CNewPetSystem; ^ char.cpp:518:10: warning: possible problem detected in invocation of delete operator: [enabled by default] delete m_newpetSystem; ^ char.cpp:518:10: warning: invalid use of incomplete type 'class CNewPetSystem' [enabled by default] In file included from char.cpp:6:0: char.h:27:7: warning: forward declaration of 'class CNewPetSystem' [enabled by default] class CNewPetSystem; ^ char.cpp:518:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined delete m_newpetSystem; ^ char.cpp: At global scope: char.cpp:1554:6: error: prototype for 'bool CHARACTER::Show(long int, long int, long int, long int, bool, bool)' does not match any in class 'CHARACTER' bool CHARACTER::Show(long lMapIndex, long x, long y, long z, bool bShowSpawnMotion, bool bAggressive) ^ In file included from char.cpp:6:0: char.h:785:10: error: candidate is: bool CHARACTER::Show(long int, long int, long int, long int, bool) bool Show(long lMapIndex, long x, long y, long z = LONG_MAX, bool bShowSpawnMotion = false); ^ char.cpp: In member function 'void CHARACTER::SetPlayerProto(const TPlayerTable*)': char.cpp:2000:17: error: invalid use of incomplete type 'class CNewPetSystem' m_newpetSystem->Destroy(); ^ In file included from char.cpp:6:0: char.h:27:7: error: forward declaration of 'class CNewPetSystem' class CNewPetSystem; ^ char.cpp:2001:10: warning: possible problem detected in invocation of delete operator: [enabled by default] delete m_newpetSystem; ^ char.cpp:2001:10: warning: invalid use of incomplete type 'class CNewPetSystem' [enabled by default] In file included from char.cpp:6:0: char.h:27:7: warning: forward declaration of 'class CNewPetSystem' [enabled by default] class CNewPetSystem; ^ char.cpp:2001:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined delete m_newpetSystem; ^ char.cpp:2004:44: error: invalid use of incomplete type 'class CNewPetSystem' m_newpetSystem = M2_NEW CNewPetSystem(this); ^ In file included from char.cpp:6:0: char.h:27:7: error: forward declaration of 'class CNewPetSystem' class CNewPetSystem; ^ compiling char_horse.cpp char.cpp: In member function 'DWORD CHARACTER::PetGetNextExp() const': char.cpp:7890:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Makefile:193: recipe for target '.obj/char.o' failed gmake: *** [.obj/char.o] Error 1 gmake: *** Waiting for unfinished jobs.... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now