Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > static function...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 43091 of 48020
Post > Topic >>

static functions

by "michael.goossens@[EMAIL PROTECTED] " <michael.goossens@[EMAIL PROTECTED] > Feb 4, 2008 at 08:06 AM

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) {
=2E..
}

and the errors:

1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'
1>c:\users\micha=EBl\do***ents\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=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '['
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C3409: empty attribute block is
not allowed
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
']' before 'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2059: syntax error :
'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2039: 'GetPivot' : is not a
member of 'Matrix4x4'
1>        c:\users\micha=EBl\do***ents\visual studio 2005\projects
\renderwoman\renderwoman\matrix4x4.h(4) : see declaration of
'Matrix4x4'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.cpp(61) : error C2143: syntax error : missing
';' before '{'
1>c:\users\micha=EBl\do***ents\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=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C3409: empty attribute block is
not allowed
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2143: syntax error : missing ']'
before 'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2059: syntax error : 'constant'
1>c:\users\micha=EBl\do***ents\visual studio 2005\projects\renderwoman
\renderwoman\matrix4x4.h(12) : error C2238: unexpected token(s)
preceding ';'
 




 6 Posts in Topic:
static functions
"michael.goossens@[E  2008-02-04 08:06:13 
Re: static functions
"Victor Bazarov"  2008-02-04 11:13:21 
Re: static functions
"michael.goossens@[E  2008-02-04 08:19:16 
Re: static functions
"Victor Bazarov"  2008-02-04 11:26:35 
Re: static functions
"C++ Enthusiast"  2008-02-04 11:27:58 
Re: static functions
James Kanze <james.kan  2008-02-05 02:09:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:59:14 CDT 2008.