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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to