Compile error
by Ross Everett · in Torque Game Engine · 08/21/2006 (5:41 pm) · 9 replies
Ok, lets see if I do this right,
gcc version is 4.1.2
distro is debian testing
computer is X86
if I missed something lemme know,
error is:
--> Compiling collision/convexBrush.cc
In file included from ./math/mathTypes.h:10,
from ./math/mMath.h:38,
from ./collision/abstractPolyList.h:10,
from ./collision/convexBrush.h:9,
from collision/convexBrush.cc:1:
./console/dynamicTypes.h:106:7: warning: no newline at end of file
./collision/optimizedPolyList.h:37: error: extra qualification 'OptimizedPolyList::Poly::' on member 'Poly'
make[1]: *** [out.GCC4.DEBUG/collision/convexBrush.obj] Error 1
make: *** [default] Error 2
Would someone please tell me where I went wrong, I'm sure I've missed something simple, I usually do.
Thanks in advance for your help.
gcc version is 4.1.2
distro is debian testing
computer is X86
if I missed something lemme know,
error is:
--> Compiling collision/convexBrush.cc
In file included from ./math/mathTypes.h:10,
from ./math/mMath.h:38,
from ./collision/abstractPolyList.h:10,
from ./collision/convexBrush.h:9,
from collision/convexBrush.cc:1:
./console/dynamicTypes.h:106:7: warning: no newline at end of file
./collision/optimizedPolyList.h:37: error: extra qualification 'OptimizedPolyList::Poly::' on member 'Poly'
make[1]: *** [out.GCC4.DEBUG/collision/convexBrush.obj] Error 1
make: *** [default] Error 2
Would someone please tell me where I went wrong, I'm sure I've missed something simple, I usually do.
Thanks in advance for your help.
#2
@Ross: The error is: extra qualification
GCC 4.1+ doesn't like sloppy code. Class name before the methods is redundant.
Before:
after
08/22/2006 (9:56 am)
@Surge: This is a linux forum..@Ross: The error is: extra qualification
GCC 4.1+ doesn't like sloppy code. Class name before the methods is redundant.
Before:
class Blah
{
int Blah::Blah(void);
}after
class Blah
{
int Blah(void);
}
#3
10/28/2006 (11:44 am)
What is the error after removing the qualifiers?
#4
My configuration is pretty much the same as Ross' but I am using Mandriva 2007.0 and gcc v4.1.1.
I took Philippe C's suggestion and tried to download the cvs and after entering my password it just hangs. I've never used cvs before so perhaps I am doing something incorrect.
Thanks all. I'll post if I get this figured out.
11/02/2006 (12:22 pm)
I too am having this exact problem.My configuration is pretty much the same as Ross' but I am using Mandriva 2007.0 and gcc v4.1.1.
I took Philippe C's suggestion and tried to download the cvs and after entering my password it just hangs. I've never used cvs before so perhaps I am doing something incorrect.
Thanks all. I'll post if I get this figured out.
#7
MyClass
{
myenum { bleh, blah, bloo };
};
then later you see that value referenced as:
MyClass::myenum::bleh
the myenum part isnt needed, and gives errors
it should be:
MyClass::bleh
thats my guess as to the problem
11/03/2006 (7:50 pm)
I think this is from stuff likeMyClass
{
myenum { bleh, blah, bloo };
};
then later you see that value referenced as:
MyClass::myenum::bleh
the myenum part isnt needed, and gives errors
it should be:
MyClass::bleh
thats my guess as to the problem
#8
11/05/2006 (1:20 pm)
Yeah, I have the same exact problem, I'm using SUSE 10.1 and GCC 4.2.1.
#9
However, I have problems linking it, because there are undefined references to function X11_KeyToUnicode. After googling a bit, it seems that it is a SDL function that should not be used ("It is an internal symbol that should not be used." is on one of the first results). I'm using Ubuntu Edgy, and if i'm not completely mistaken, it could be that X11_KeyToUnicode is not necessarily available anymore in recent compilations of SDL.
11/08/2006 (12:08 pm)
I got it to compile after fixing a few similar cases (the others are in engine/game/cameraSpline.h, lines 40-42). However, I have problems linking it, because there are undefined references to function X11_KeyToUnicode. After googling a bit, it seems that it is a SDL function that should not be used ("It is an internal symbol that should not be used." is on one of the first results). I'm using Ubuntu Edgy, and if i'm not completely mistaken, it could be that X11_KeyToUnicode is not necessarily available anymore in recent compilations of SDL.
Torque Owner Philippe C
more info eviwo.free.fr/torque/compile.html