error: extra qualification 'AbstractClassRep::' on member 'findClassRep'
by Bruno Morin · in iTorque 2D · 04/22/2009 (12:10 pm) · 9 replies
after installing API3.0 and trying to build it as Simulator 3.0, I got
this error?
error: extra qualification 'AbstractClassRep::' on member 'findClassRep'
does anybody know how to fix this problem?
#2
This might help?
09/16/2009 (7:30 pm)
With normal TGB (not iTGB) I got rid of it by changing the GCC compiler from 4.2 to 4.0 under project settings.This might help?
#3
www.garagegames.com/community/forums/viewthread/100397
I did find a post describing how to fix this actually, however it doesn't look like it's working. Here's that post:
www.sickheadgames.com/stuff/consoleObject.patch
09/16/2009 (7:35 pm)
lol... I'm actually trying to compile for 4.2 as I am making my code compatible with OS 3.0 in a (so far futile) effort to get the memory leak fixes implemented as described in this thread:www.garagegames.com/community/forums/viewthread/100397
I did find a post describing how to fix this actually, however it doesn't look like it's working. Here's that post:
www.sickheadgames.com/stuff/consoleObject.patch
#4
Change this:
removing a bunch of those were one of the main things needed to compile with GCC 4.2. You also had to modify the OpenAL audio classes to not use some ASSERTS with goto's.
09/16/2009 (7:40 pm)
I believe that error means there is a ClassName:: prefix on a member function inside the class definition.Change this:
class AbstractClassRep {
void AbstractClassRep::findClassRep();
}
to
class AbstractClassRep {
void findClassRep();
}removing a bunch of those were one of the main things needed to compile with GCC 4.2. You also had to modify the OpenAL audio classes to not use some ASSERTS with goto's.
#5
www.garagegames.com/community/forums/viewthread/91531
09/16/2009 (7:45 pm)
Ok. The top of this post mentions extra qualification errors...www.garagegames.com/community/forums/viewthread/91531
#6
http://www.garagegames.com/community/forums/viewthread/99007
He doesn't really say what to do, but you need to edit the line to read like this:
I'm finding some similar occurrences with other items however... I'll update this thread as I fix them.
09/16/2009 (7:49 pm)
Got it. Follow this thread to fix it. Just need to edit one line. http://www.garagegames.com/community/forums/viewthread/99007
He doesn't really say what to do, but you need to edit the line to read like this:
static AbstractClassRep* findClassRep(const char* in_pClassName);
I'm finding some similar occurrences with other items however... I'll update this thread as I fix them.
#7
CodeBlock.h - line 93. Remove CodeBlock::
t2dSceneObject.h - line 347. Remove t2dSceneObject::
t2dShapeVector.h - line 54. Remove t2dShapeVector::
line 56. Remove t2dShapeVector::
line 57. Remove t2dShapeVector::
line 58. Remove t2dShapeVector::
That fixes all but 33 of the errors in compiling for OS 3.0 under GCC 4.2. More as I find them...
09/16/2009 (7:57 pm)
tinyxml.h - line 878. Remove TiXmlDeclaration::CodeBlock.h - line 93. Remove CodeBlock::
t2dSceneObject.h - line 347. Remove t2dSceneObject::
t2dShapeVector.h - line 54. Remove t2dShapeVector::
line 56. Remove t2dShapeVector::
line 57. Remove t2dShapeVector::
line 58. Remove t2dShapeVector::
That fixes all but 33 of the errors in compiling for OS 3.0 under GCC 4.2. More as I find them...
#8
09/17/2009 (12:03 am)
Ok. The other 33 errors were pretty much all asserts that complained they were giving weren't returning null for a function that required null. I took the cheap way out and just commented them all out which fixed it, but for anyone else who is going to do this, that's the next step to stop the last 33 errors - null up those calls.
#9
09/17/2009 (12:24 am)
yea those were the asserts i talked about replacing in my thread. I wasn't real detailed about what i did cause I did it in a hurry and didn't remember everything perfectly clearly.
Associate Dave Calabrese
Cerulean Games