[fpc-devel]'= type pointer' doesn't work in package?

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu Mar 6 21:57:05 CET 2003


On 6 Mar 2003, andrew johnson wrote:

> I was trying to get the gtk2 headers into a normal fpc package format
> and discovered that while for instance glib2 will compile with no issue
> with fpc directly, when compiled as a package within an fpc 1.0.7
> tree(from yesterday), it raises an error "cannot create unique type from
> this type" and then a compiler panic 99999 on
>
>    PGMemChunk = type pointer; // internal structure of gmem.c
>    PGAllocator = type pointer; // internal structure of gmem.c

This structure is not yet supported by the 1.0.X compiler.

Just replace it with

  PGMemChunk = pointer;
  PGAllocator = pointer;

And all should be well.

Michael.




More information about the fpc-devel mailing list