[fpc-devel] Forward declaration not solved

Peter Beisel Peter.Beisel at gmx.de
Tue Nov 24 12:50:25 CET 2009


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;
 
  procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);
  begin
  {...}
  end;
 
  END.
 


But following code snippet compiles fine (no usage of unit graph):
 
   UNIT uxy;
     {
     FPC Ver 2.2. 4
     Target: Go32V2 
  No Compiler Error
  }
   
     INTERFACE
   
     procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);
   
  IMPLEMENTATION
   
     procedure doXY( X, Y, Cnt: smallInt; C: Char; A: byte);
     begin
    {...}
   end;
   
     END.
   

Any ideas?
Regards Peter
    
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20091124/3f8308f8/attachment.html>


More information about the fpc-devel mailing list