M
michael.goossens
Alright I am implementing a static member function for the first time
and it is not working . Are static member functions implemented in
the header?
header:
static float[4][8] GetPivot(float matrix[4][8], int n);
cpp:
static float[4][8] Matrix4x4::GetPivot(float matrix[4][8], int n) {
...
}
and the errors:
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : warning C4091: 'static ' : ignored on
left of 'float' when no variable is declared
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '['
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
']' before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2059: syntax error :
'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2039: 'GetPivot' : is not a
member of 'Matrix4x4'
1> c:\users\michaël\documents\visual studio 2005\projects
\renderwoman\renderwoman\matrix4x4.h(4) : see declaration of
'Matrix4x4'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '{'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2447: '{' : missing function
header (old-style formal list?)
1>Transform.cpp
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'
and it is not working . Are static member functions implemented in
the header?
header:
static float[4][8] GetPivot(float matrix[4][8], int n);
cpp:
static float[4][8] Matrix4x4::GetPivot(float matrix[4][8], int n) {
...
}
and the errors:
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : warning C4091: 'static ' : ignored on
left of 'float' when no variable is declared
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '['
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
']' before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2059: syntax error :
'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2039: 'GetPivot' : is not a
member of 'Matrix4x4'
1> c:\users\michaël\documents\visual studio 2005\projects
\renderwoman\renderwoman\matrix4x4.h(4) : see declaration of
'Matrix4x4'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '{'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2447: '{' : missing function
header (old-style formal list?)
1>Transform.cpp
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\michaël\documents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'