Compiler errors like this usually point to a syntax error in the previous line(s). Fixing it
may be as easy as appending a
;
, like suggested above. But your error message sounds more like there is a syntax error
in that actual line.
You mentioned a
static constant variable, that would be a constant declared within a class (or struct) like this:
class Foo {
public:
static const int bar;
};
To define that constant, your source code must assign that constant like this:
const int Foo::bar = 7;
Is that what you did? Did you use the same syntax? Maybe you forgot the
=
? If that is not it, please post the code that causes the problem.