替代问题,求帮助

 以下的一个类型是根据D3DTYPES8.H写成的,可

编译时却出现问题,编译结果如下:

>gcc -c d3d8types.ads
d3d8types.ads:1702:07: enumeration value for "D3dfmt_D16_Lockable" not ordered
d3d8types.ads:1706:07: enumeration value for "D3dfmt_D24x8" not ordered
d3d8types.ads:1714:07: enumeration value for "D3dfmt_Dxt1" not ordered
d3d8types.ads:1716:07: enumeration value for "D3dfmt_Yuy2" not ordered
>Exit code: 1

 

type D3dformat is
         (D3dfmt_Unknown,     
          D3dfmt_R8g8b8,      
          D3dfmt_A8r8g8b8,    
          D3dfmt_X8r8g8b8,    
          D3dfmt_R5g6b5,      
          D3dfmt_X1r5g5b5,    
          D3dfmt_A1r5g5b5,    
          D3dfmt_A4r4g4b4,    
          D3dfmt_R3g3b2,      
          D3dfmt_A8,          
          D3dfmt_A8r3g3b2,    
          D3dfmt_X4r4g4b4,    
          D3dfmt_A8p8,        
          D3dfmt_P8,          
          D3dfmt_L8,          
          D3dfmt_A8l8,        
          D3dfmt_A4l4,        
          D3dfmt_V8u8,        
          D3dfmt_L6v5u5,      
          D3dfmt_X8l8v8u8,    
          D3dfmt_Q8w8v8u8,    
          D3dfmt_V16u16,      
          D3dfmt_W11v11u10,   
          D3dfmt_Uyvy,        
          D3dfmt_Yuy2,        
          D3dfmt_Dxt1,        
          D3dfmt_Dxt2,        
          D3dfmt_Dxt3,        
          D3dfmt_Dxt4,        
          D3dfmt_Dxt5,        
          D3dfmt_D16_Lockable,
          D3dfmt_D32,         
          D3dfmt_D15s1,       
          D3dfmt_D24s8,       
          D3dfmt_D16,         
          D3dfmt_D24x8,       
          D3dfmt_D24x4s4,     
          D3dfmt_Vertexdata,  
          D3dfmt_Index16,     
          D3dfmt_Index32);

   for D3dformat use
      (
      D3dfmt_Unknown      => 0,         
      D3dfmt_R8g8b8       => 20,        
      D3dfmt_A8r8g8b8     => 21,        
      D3dfmt_X8r8g8b8     => 22,        
      D3dfmt_R5g6b5       => 23,        
      D3dfmt_X1r5g5b5     => 24,        
      D3dfmt_A1r5g5b5     => 25,        
      D3dfmt_A4r4g4b4     => 26,        
      D3dfmt_R3g3b2       => 27,        
      D3dfmt_A8           => 28,        
      D3dfmt_A8r3g3b2     => 29,        
      D3dfmt_X4r4g4b4     => 30,        
      D3dfmt_A8p8         => 40,        
      D3dfmt_P8           => 41,        
      D3dfmt_L8           => 50,        
      D3dfmt_A8l8         => 51,        
      D3dfmt_A4l4         => 52,        
      D3dfmt_V8u8         => 60,        
      D3dfmt_L6v5u5       => 61,        
      D3dfmt_X8l8v8u8     => 62,        
      D3dfmt_Q8w8v8u8     => 63,        
      D3dfmt_V16u16       => 64,        
      D3dfmt_W11v11u10    => 65,   
     
      D3dfmt_D16_Lockable => 70,  --not ordered?      
      D3dfmt_D32          => 71,        
      D3dfmt_D15s1        => 73,        
      D3dfmt_D24s8        => 75,
      D3dfmt_D24x8        => 77,   --not ordered?       
      D3dfmt_D24x4s4      => 79,           
      D3dfmt_D16          => 80,        
           
      D3dfmt_Vertexdata   => 100,       
      D3dfmt_Index16      => 101,       
      D3dfmt_Index32      => 102,
        
      D3dfmt_Dxt1         => 827611204,  --not ordered?
      D3dfmt_Dxt2         => 844388420,
      D3dfmt_Yuy2         => 844715353,  --not ordered?
      D3dfmt_Dxt3         => 861165636, 
      D3dfmt_Dxt4         => 877942852, 
      D3dfmt_Dxt5         => 894720068, 
      D3dfmt_Uyvy         => 1498831189
      ) ;