kieranFMT2 302 Posted October 31, 2018 Share Posted October 31, 2018 Can anyone tell me how to fix this? In file included from vip.cpp:5: vip.h:11: error: ISO C++ forbids declaration of 'TVIPTable' with no type vip.h:11: error: expected ';' before '*' token vip.h:12: error: 'TVIPTable' has not been declared vip.h:19: error: 'TVIPTable' was not declared in this scope vip.h:19: error: template argument 2 is invalid vip.h:19: error: template argument 4 is invalid vip.cpp: In member function 'void CVIPManager::Initialize()': vip.cpp:20: error: request for member 'clear' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp: In member function 'void CVIPManager::ClearVIPTable()': vip.cpp:30: error: request for member 'empty' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp:32: error: request for member 'clear' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp: At global scope: vip.cpp:36: error: prototype for 'bool CVIPManager::InsertVIP(TVIPTable*)' does not match any in class 'CVIPManager' vip.h:12: error: candidate is: bool CVIPManager::InsertVIP(int*) vip.cpp: In member function 'bool CVIPManager::InsertVIP(TVIPTable*)': vip.cpp:38: error: request for member 'insert' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp: At global scope: vip.cpp:42: error: no 'TVIPTable* CVIPManager::FindVIP(int)' member function declared in class 'CVIPManager' vip.cpp: In member function 'TVIPTable* CVIPManager::FindVIP(int)': vip.cpp:44: error: ISO C++ forbids declaration of 'it' with no type vip.cpp:44: error: request for member 'find' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp:46: error: request for member 'end' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp:51: error: base operand of '->' is not a pointer vip.cpp: In member function 'void CVIPManager::GiveEffects(CHARACTER*)': vip.cpp:61: error: ISO C++ forbids declaration of 'it' with no type vip.cpp:61: error: request for member 'begin' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp:63: error: request for member 'end' in '((CVIPManager*)this)->CVIPManager::m_map_pkVIP', which is of non-class type 'int' vip.cpp:65: error: base operand of '->' is not a pointer gmake: *** [OBJDIR_GAME/vip.o] Error 1 gmake: *** Waiting for unfinished jobs.... Link to comment Share on other sites More sharing options...
Weles 8 Posted October 31, 2018 Share Posted October 31, 2018 Show me ur vip.h and .cpp file. Link to comment Share on other sites More sharing options...
kieranFMT2 302 Posted October 31, 2018 Author Share Posted October 31, 2018 Here This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up Link to comment Share on other sites More sharing options...
kieranFMT2 302 Posted November 3, 2018 Author Share Posted November 3, 2018 Up 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