It is currently 18 Jun 2019, 23:49
   
Text Size

Debug doesn't compile

Moderators: FranAvalon, Marek14, CCGHQ Admins

Debug doesn't compile

Postby Jean le Chauve » 17 Nov 2012, 17:29

FranAvalon reported:

I am trying to fix the debug crash with battlestar help, but Magiccore desn't compile because it give some error message on these card.h lines:
Code:
VIRTUAL (CString, GetPrintedCardName()) const { return m_strPrintedCardName; }
VIRTUAL (CString, GetSecondPrintedCardName()) const { return m_strPrintedCardName; }
VIRTUAL (CString, GetSecondCardName)(BOOL bIncludeDetails = TRUE) const;


These are the error messages, which I am unable to fix and must be fixed.

...\botarena source code\magic\magiccore\card.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int...\botarena source code\magic\magiccore\card.h(209): warning C4183: '__dummy_GetPrintedCardName': missing return type; assumed to be a member function returning 'int'
...\botarena source code\magic\magiccore\card.h(209): error C2143: syntax error : missing ';' before '*'
...\botarena source code\magic\magiccore\card.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...\botarena source code\magic\magiccore\card.h(209): error C2535: 'int CCard::__dummy_GetPrintedCardName(void)' : member function already defined or declared
1> c:\documents and settings\fran\escritorio\botarena source code\magic\magiccore\card.h(209) : see declaration of 'CCard::__dummy_GetPrintedCardName'
...\botarena source code\magic\magiccore\card.h(209): error C2091: function returns function
...\botarena source code\magic\magiccore\card.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...\botarena source code\magic\magiccore\card.h(209): warning C4183: '__virtual_GetPrintedCardName': missing return type; assumed to be a member function returning 'int'
...\botarena source code\magic\magiccore\card.h(210): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...\botarena source code\magic\magiccore\card.h(210): warning C4183: '__dummy_GetSecondPrintedCardName': missing return type; assumed to be a member function returning 'int'
...\botarena source code\magic\magiccore\card.h(210): error C2143: syntax error : missing ';' before '*'
...\botarena source code\magic\magiccore\card.h(210): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...\botarena source code\magic\magiccore\card.h(210): error C2535: 'int CCard::__dummy_GetSecondPrintedCardName(void)' : member function already defined or declared
1> c:\documents and settings\fran\escritorio\botarena source code\magic\magiccore\card.h(210) : see declaration of 'CCard::__dummy_GetSecondPrintedCardName'
...\botarena source code\magic\magiccore\card.h(210): error C2091: function returns function
...\botarena source code\magic\magiccore\card.h(210): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...\botarena source code\magic\magiccore\card.h(210): warning C4183: '__virtual_GetSecondPrintedCardName': missing return type; assumed to be a member function returning 'int'
1>c1xx : fatal error C1903: unable to recover from previous error(s); stopping compilation
Jean le Chauve
 
Posts: 56
Joined: 30 Jan 2012, 10:28
Has thanked: 1 time
Been thanked: 1 time

Return to User Interface and AI issues

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 1 guest

Login Form