[fpc-devel] Forward declaration not solved

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 24 12:55:58 CET 2009


On 24 Nov 2009, at 12:50, Peter Beisel wrote:

> compiler: fpc 2.2.4
> target: go32v2
>
> the following snippet fails compiling:
>
>   UNIT uxy;
>   {
>   FPC Ver 2.2.4
>   Target: Go32V2
>   Compiler Error: Forward declaration not soved "doXY(SmallInt,  
> Smallint,
> Smallint, Char,   Byte);"
>   }
>
>   INTERFACE
>
>   procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);
>
>   IMPLEMENTATION
>   uses graph;

The problem is that the graph unit also defines a smallint type.  
Either add graph to the interface of your unit, or use system.smallint  
in the implementation.


Jonas



More information about the fpc-devel mailing list