The following declaration of LogMatrix4DContents() gives errors...
typedef struct
{
// Column-major matrix.
float32 _11,
_21,
_31,
_41,
_12,
_22,
_32,
_42,
_13,
_23,
_33,
_43,
_14,
_24,
_34,
_44;
} Matrix4f;
void LogMatrix4DContents( Matrix4f* pMat ); // Gives errors...
error C2143: syntax error : missing ')' before '*'
error C2143: syntax error : missing '{' before '*'
error C2059: syntax error : ')'
So I end up having to do this for now:
void LogMatrix4DContents( void* pMat );
...
void LogMatrix4DContents( void* pMat )
{
Matrix4f* pM = (Matrix4f*)(pMat);
...
}
Any idea? VS2005Pro, compiling in C. Though, had the same problem in old Turbo C. Note that 'LogVector4DContents()' worked fine, which is exactly analogous.. Maybe I'm forgetting something fundamental about C.