Hi
I think I have a missing feature or incompatibility with BP. I am trying to compile the paszlib units with GPC. Given these declarations:
{ Data structure describing a single value and its code string. } type ct_data_ptr = ^ct_data; ct_data = record fc : record case byte of 0:(freq : ush); { frequency count } 1:(code : ush); { bit string } end; dl : record case byte of 0:(dad : ush); { father node in Huffman tree } 1:(len : ush); { length of bit string } end; end;
this code does not compile: var static_ltree : array[0..L_CODES+2-1] of ct_data = ( (fc:(freq: 12);dl:(len: 8)), (fc:(freq:140);dl:(len: 8)), (fc:(freq: 76);dl:(len: 8)), (fc:(freq:204);dl:(len: 8)), (fc:(freq: 44);dl:(len: 8)), (fc:(freq:172);dl:(len: 8)), (fc:(freq:108);dl:(len: 8)), (fc:(freq:236);dl:(len: 8)), (fc:(freq: 28);dl:(len: 8)), [....]
Instead, I get the error: "trees.pas:448: field `freq' not found"
Any clues? Thanks.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/
Prof A Olowofoyeku (The African Chief) wrote:
I think I have a missing feature or incompatibility with BP. I am trying to compile the paszlib units with GPC. Given these declarations:
See bug list:
* initializers of packed arrays (emil5.pas) and variant records don't work
Frank