C:\Virus\Virus\FPS.h|4|error: expected unqualified-id before ')' token|
Jan 8, 2012 at 3:32pm UTC
I have a problem here! Im trying to compile this class(wich is part if a much bigger program) and it won't compile. All i get is this error:
C:\Virus\Virus\FPS.h|4|error: expected unqualified-id before ')' token|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef FPS_H
#define FPS_H
class FPS()
{
public :
FPS();
~FPS();
void SetFrameRate(double x) {framesPerSec = x;}
double GetFrameRate() {return framesPerSec;}
double waitTilNextFrame();
private :
double framesPerSec;
}
#endif
________________________________________________________________________-
C:\Virus\Virus\FPS.h|4|error: expected unqualified-id before ')' token|
Please help!
Btw im using OpenGL and GLFW.
Jan 8, 2012 at 3:36pm UTC
Missing semicolon on line 14.
Jan 8, 2012 at 3:39pm UTC
Remove the parenthesis in line 4.
Jan 8, 2012 at 3:58pm UTC
No problems
I fixed the other ones.
Thanks so much!
Jan 8, 2012 at 10:21pm UTC
You can check the post as solved when it's actually is.
Topic archived. No new replies allowed.