   typedef'ing d3dxmatrix
  I want to use DirectX's math libraries, but I want to keep it abstract and basically be able to use my names for types and functions.  I want to write my own library at some point (for experience).It's been good but I'm stuck on typedef'ing D3DXMATRIX.  I get an error at the following line:typedef D3DXMATRIX AXMatrix4;The error is "more than one storage class specifier."  I understand the error, but not quite where it is coming from.  I checked out the declaration of D3DXMATRIX, and I'm not exactly sure what the problem is.  Maybe I don't understand the error like I thought I did.  Here's what it looks like:typedef struct D3DXMATRIX : public D3DMATRIX{public:    D3DXMATRIX() {};    D3DXMATRIX( CONST FLOAT * );    D3DXMATRIX( CONST D3DMATRIX& );    ...}Anyone have any ideas?   
  It looks like D3DXMATRIX is already a typedef, so you'll have to derive a class from it and typedef that.   ;  Maybe because it is already typedef'd, just guessing.   ;Quote:Original post by DirectXFreakIt looks like D3DXMATRIX is already a typedef, so you'll have to derive a class from it and typedef that.You can typedef types that typedef to another type.  I've successfully typedef'ed D3DXVECTOR2/3/4, and this is the declaration of it:typedef struct D3DXVECTOR2{#ifdef __cpluspluspublic:    D3DXVECTOR2() {};    D3DXVECTOR2( CONST FLOAT * );    D3DXVECTOR2( CONST D3DXFLOAT16 * );[So I don't think that's the problem... maybe I shall try it though.  Thanks!Edit:  The only difference is that it inherits from another class.  Is that a problem?Edit2:  Scratch that, D3DXVECTOR3 and 4 inherit from D3DVECTOR.  I didn't think that was a problem.  This should be working fine...   